Skip to content

Commit 0e84b41

Browse files
Pei Xiaotiwai
authored andcommitted
ALSA: ac97: bus: Fix the mistake in the comment
Fix mistake in the comment. sound/ac97/bus.c:192: warning: Function parameter or member 'drv' not described in 'snd_ac97_codec_driver_register' sound/ac97/bus.c:192: warning: Excess function parameter 'dev' description in 'snd_ac97_codec_driver_register' sound/ac97/bus.c:205: warning: Function parameter or member 'drv' not described in 'snd_ac97_codec_driver_unregister' sound/ac97/bus.c:205: warning: Excess function parameter 'dev' description in 'snd_ac97_codec_driver_unregister' sound/ac97/bus.c:351: warning: Function parameter or member 'codecs_pdata' not described in 'snd_ac97_controller_register' Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 74426fb ("ALSA: ac97: add an ac97 bus") Signed-off-by: Pei Xiao <[email protected]> Link: https://patch.msgid.link/3990bfc8cd47637908eaa179802c1d91459d829b.1732083924.git.xiaopei01@kylinos.cn Signed-off-by: Takashi Iwai <[email protected]>
1 parent e3f8064 commit 0e84b41

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sound/ac97/bus.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ static int ac97_bus_reset(struct ac97_controller *ac97_ctrl)
180180

181181
/**
182182
* snd_ac97_codec_driver_register - register an AC97 codec driver
183-
* @dev: AC97 driver codec to register
183+
* @drv: AC97 driver codec to register
184184
*
185185
* Register an AC97 codec driver to the ac97 bus driver, aka. the AC97 digital
186186
* controller.
@@ -196,7 +196,7 @@ EXPORT_SYMBOL_GPL(snd_ac97_codec_driver_register);
196196

197197
/**
198198
* snd_ac97_codec_driver_unregister - unregister an AC97 codec driver
199-
* @dev: AC97 codec driver to unregister
199+
* @drv: AC97 codec driver to unregister
200200
*
201201
* Unregister a previously registered ac97 codec driver.
202202
*/
@@ -338,6 +338,7 @@ static int ac97_add_adapter(struct ac97_controller *ac97_ctrl)
338338
* @dev: the device providing the ac97 DC function
339339
* @slots_available: mask of the ac97 codecs that can be scanned and probed
340340
* bit0 => codec 0, bit1 => codec 1 ... bit 3 => codec 3
341+
* @codecs_pdata: codec platform data
341342
*
342343
* Register a digital controller which can control up to 4 ac97 codecs. This is
343344
* the controller side of the AC97 AC-link, while the slave side are the codecs.

0 commit comments

Comments
 (0)