mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
ASoC: soc-acpi: fix all kernel-doc warnings
Add missing "struct" keyword to kernel-doc for structs. Describe @mach_params in struct snd_soc_acpi_mach. Don't document callback parameters with '@' as though they are kernel-doc. These changes avoid all kernel-doc warnings in this header file. Examples: Warning: ../include/sound/soc-acpi.h:77 cannot understand function prototype: 'struct snd_soc_acpi_mach_params' Warning: ../include/sound/soc-acpi.h:101 cannot understand function prototype: 'struct snd_soc_acpi_endpoint' Warning: ../include/sound/soc-acpi.h:115 cannot understand function prototype: 'struct snd_soc_acpi_adr_device' Warning: ../include/sound/soc-acpi.h:132 cannot understand function prototype: 'struct snd_soc_acpi_link_adr' Warning: ../include/sound/soc-acpi.h:209 cannot understand function prototype: 'struct snd_soc_acpi_mach' Warning: include/sound/soc-acpi.h:230 struct member 'mach_params' not described in 'snd_soc_acpi_mach' Warning: include/sound/soc-acpi.h:230 Excess struct member 'card' description in 'snd_soc_acpi_mach' Warning: include/sound/soc-acpi.h:230 Excess struct member 'mach' description in 'snd_soc_acpi_mach' Signed-off-by: Randy Dunlap <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
1 parent
ff322994c7
commit
62f85ba402
1 file changed
+12
-11
+12
-11
@@ -57,7 +57,7 @@ static inline struct snd_soc_acpi_mach *snd_soc_acpi_codec_list(void *arg)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* snd_soc_acpi_mach_params: interface for machine driver configuration
|
||||
* struct snd_soc_acpi_mach_params - interface for machine driver configuration
|
||||
*
|
||||
* @acpi_ipc_irq_index: used for BYT-CR detection
|
||||
* @platform: string used for HDAudio codec support
|
||||
@@ -93,7 +93,7 @@ struct snd_soc_acpi_mach_params {
|
||||
};
|
||||
|
||||
/**
|
||||
* snd_soc_acpi_endpoint - endpoint descriptor
|
||||
* struct snd_soc_acpi_endpoint - endpoint descriptor
|
||||
* @num: endpoint number (mandatory, unique per device)
|
||||
* @aggregated: 0 (independent) or 1 (logically grouped)
|
||||
* @group_position: zero-based order (only when @aggregated is 1)
|
||||
@@ -107,7 +107,7 @@ struct snd_soc_acpi_endpoint {
|
||||
};
|
||||
|
||||
/**
|
||||
* snd_soc_acpi_adr_device - descriptor for _ADR-enumerated device
|
||||
* struct snd_soc_acpi_adr_device - descriptor for _ADR-enumerated device
|
||||
* @adr: 64 bit ACPI _ADR value
|
||||
* @num_endpoints: number of endpoints for this device
|
||||
* @endpoints: array of endpoints
|
||||
@@ -121,7 +121,7 @@ struct snd_soc_acpi_adr_device {
|
||||
};
|
||||
|
||||
/**
|
||||
* snd_soc_acpi_link_adr - ACPI-based list of _ADR enumerated devices
|
||||
* struct snd_soc_acpi_link_adr - ACPI-based list of _ADR enumerated devices
|
||||
* @mask: one bit set indicates the link this list applies to
|
||||
* @num_adr: ARRAY_SIZE of devices
|
||||
* @adr_d: array of devices
|
||||
@@ -167,8 +167,8 @@ struct snd_soc_acpi_link_adr {
|
||||
#define SND_SOC_ACPI_TPLG_INTEL_CODEC_NAME BIT(4)
|
||||
|
||||
/**
|
||||
* snd_soc_acpi_mach: ACPI-based machine descriptor. Most of the fields are
|
||||
* related to the hardware, except for the firmware and topology file names.
|
||||
* struct snd_soc_acpi_mach - ACPI-based machine descriptor. Most of the fields
|
||||
* are related to the hardware, except for the firmware and topology file names.
|
||||
* A platform supported by legacy and Sound Open Firmware (SOF) would expose
|
||||
* all firmware/topology related fields.
|
||||
*
|
||||
@@ -192,6 +192,7 @@ struct snd_soc_acpi_link_adr {
|
||||
* the initial selection in the snd_soc_acpi_mach table.
|
||||
* @pdata: intended for platform data or machine specific-ops. This structure
|
||||
* is not constant since this field may be updated at run-time
|
||||
* @mach_params: machine driver configuration
|
||||
* @sof_tplg_filename: Sound Open Firmware topology file name, if enabled
|
||||
* @tplg_quirk_mask: quirks to select different topology files dynamically
|
||||
* @get_function_tplg_files: This is an optional callback, if specified then instead of
|
||||
@@ -199,11 +200,11 @@ struct snd_soc_acpi_link_adr {
|
||||
* files to be loaded.
|
||||
* Return value: The number of the files or negative ERRNO. 0 means that the single topology
|
||||
* file should be used, no function topology split can be used on the machine.
|
||||
* @card: the pointer of the card
|
||||
* @mach: the pointer of the machine driver
|
||||
* @prefix: the prefix of the topology file name. Typically, it is the path.
|
||||
* @tplg_files: the pointer of the array of the topology file names.
|
||||
* @best_effort: ignore non supported links and try to build the card in best effort
|
||||
* card: the pointer of the card
|
||||
* mach: the pointer of the machine driver
|
||||
* prefix: the prefix of the topology file name. Typically, it is the path.
|
||||
* tplg_files: the pointer of the array of the topology file names.
|
||||
* best_effort: ignore non supported links and try to build the card in best effort
|
||||
* with supported links
|
||||
*/
|
||||
/* Descriptor for SST ASoC machine driver */
|
||||
|
||||
Reference in new issue
Block a user