ASoC: p1022_rdk: fix all kernel-doc warnings

Fix several kernel-doc warnings in p1022_rdk.c:

p1022_rdk.c:70: warning: cannot understand function prototype: 'struct machine_data '
p1022_rdk.c:90: warning: Function parameter or struct member 'card' not described in 'p1022_rdk_machine_probe'
p1022_rdk.c:90: warning: No description found for return value of 'p1022_rdk_machine_probe'
p1022_rdk.c:129: warning: Function parameter or struct member 'substream' not described in 'p1022_rdk_startup'
p1022_rdk.c:129: warning: No description found for return value of 'p1022_rdk_startup'
p1022_rdk.c:162: warning: Function parameter or struct member 'card' not described in 'p1022_rdk_machine_remove'
p1022_rdk.c:162: warning: No description found for return value of 'p1022_rdk_machine_remove'
p1022_rdk.c:187: warning: cannot understand function prototype: 'const struct snd_soc_ops p1022_rdk_ops = '
p1022_rdk.c:199: warning: Function parameter or struct member 'pdev' not described in 'p1022_rdk_probe'
p1022_rdk.c:199: warning: No description found for return value of 'p1022_rdk_probe'
p1022_rdk.c:349: warning: Function parameter or struct member 'pdev' not described in 'p1022_rdk_remove'
p1022_rdk.c:376: warning: No description found for return value of 'p1022_rdk_init'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc:  <linux-sound@vger.kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Link: https://msgid.link/r/20240111045736.7500-1-rdunlap@infradead.org
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Randy Dunlap 2024-01-10 20:57:36 -08:00 committed by Mark Brown
parent 059870e53a
commit 90050b8d2e
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -61,7 +61,7 @@ static inline void guts_set_dmuxcr(struct ccsr_guts __iomem *guts,
/* There's only one global utilities register */ /* There's only one global utilities register */
static phys_addr_t guts_phys; static phys_addr_t guts_phys;
/** /*
* machine_data: machine-specific ASoC device data * machine_data: machine-specific ASoC device data
* *
* This structure contains data for a single sound platform device on an * This structure contains data for a single sound platform device on an
@ -80,11 +80,14 @@ struct machine_data {
}; };
/** /**
* p1022_rdk_machine_probe: initialize the board * p1022_rdk_machine_probe - initialize the board
* @card: ASoC card instance
* *
* This function is used to initialize the board-specific hardware. * This function is used to initialize the board-specific hardware.
* *
* Here we program the DMACR and PMUXCR registers. * Here we program the DMACR and PMUXCR registers.
*
* Returns: %0 on success or negative errno value on error
*/ */
static int p1022_rdk_machine_probe(struct snd_soc_card *card) static int p1022_rdk_machine_probe(struct snd_soc_card *card)
{ {
@ -119,11 +122,14 @@ static int p1022_rdk_machine_probe(struct snd_soc_card *card)
} }
/** /**
* p1022_rdk_startup: program the board with various hardware parameters * p1022_rdk_startup - program the board with various hardware parameters
* @substream: ASoC substream object
* *
* This function takes board-specific information, like clock frequencies * This function takes board-specific information, like clock frequencies
* and serial data formats, and passes that information to the codec and * and serial data formats, and passes that information to the codec and
* transport drivers. * transport drivers.
*
* Returns: %0 on success or negative errno value on error
*/ */
static int p1022_rdk_startup(struct snd_pcm_substream *substream) static int p1022_rdk_startup(struct snd_pcm_substream *substream)
{ {
@ -153,10 +159,13 @@ static int p1022_rdk_startup(struct snd_pcm_substream *substream)
} }
/** /**
* p1022_rdk_machine_remove: Remove the sound device * p1022_rdk_machine_remove - Remove the sound device
* @card: ASoC card instance
* *
* This function is called to remove the sound device for one SSI. We * This function is called to remove the sound device for one SSI. We
* de-program the DMACR and PMUXCR register. * de-program the DMACR and PMUXCR register.
*
* Returns: %0 on success or negative errno value on error
*/ */
static int p1022_rdk_machine_remove(struct snd_soc_card *card) static int p1022_rdk_machine_remove(struct snd_soc_card *card)
{ {
@ -181,7 +190,7 @@ static int p1022_rdk_machine_remove(struct snd_soc_card *card)
return 0; return 0;
} }
/** /*
* p1022_rdk_ops: ASoC machine driver operations * p1022_rdk_ops: ASoC machine driver operations
*/ */
static const struct snd_soc_ops p1022_rdk_ops = { static const struct snd_soc_ops p1022_rdk_ops = {
@ -189,11 +198,14 @@ static const struct snd_soc_ops p1022_rdk_ops = {
}; };
/** /**
* p1022_rdk_probe: platform probe function for the machine driver * p1022_rdk_probe - platform probe function for the machine driver
* @pdev: platform device pointer
* *
* Although this is a machine driver, the SSI node is the "master" node with * Although this is a machine driver, the SSI node is the "master" node with
* respect to audio hardware connections. Therefore, we create a new ASoC * respect to audio hardware connections. Therefore, we create a new ASoC
* device for each new SSI node that has a codec attached. * device for each new SSI node that has a codec attached.
*
* Returns: %0 on success or negative errno value on error
*/ */
static int p1022_rdk_probe(struct platform_device *pdev) static int p1022_rdk_probe(struct platform_device *pdev)
{ {
@ -341,7 +353,8 @@ error_put:
} }
/** /**
* p1022_rdk_remove: remove the platform device * p1022_rdk_remove - remove the platform device
* @pdev: platform device pointer
* *
* This function is called when the platform device is removed. * This function is called when the platform device is removed.
*/ */
@ -368,9 +381,11 @@ static struct platform_driver p1022_rdk_driver = {
}; };
/** /**
* p1022_rdk_init: machine driver initialization. * p1022_rdk_init - machine driver initialization.
* *
* This function is called when this module is loaded. * This function is called when this module is loaded.
*
* Returns: %0 on success or negative errno value on error
*/ */
static int __init p1022_rdk_init(void) static int __init p1022_rdk_init(void)
{ {
@ -391,7 +406,7 @@ static int __init p1022_rdk_init(void)
} }
/** /**
* p1022_rdk_exit: machine driver exit * p1022_rdk_exit - machine driver exit
* *
* This function is called when this driver is unloaded. * This function is called when this driver is unloaded.
*/ */