Skip to content

Commit 86a7f45

Browse files
Tang Binbroonie
authored andcommitted
ASoC: soc-ac97: Fix the incorrect description
In the function snd_soc_alloc_ac97_component & snd_soc_new_ac97_component, the error return is ERR_PTR, so fix the incorrect description. Fixes: 47e0394 ("ASoC: Add support for allocating AC'97 device before registering it") Fixes: 7361fbe ("ASoC: ac97: Add support for resetting device before registration") Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com> Link: https://patch.msgid.link/20240910013303.2044-1-tangbin@cmss.chinamobile.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 16faf8c commit 86a7f45

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/soc/soc-ac97.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static void snd_soc_ac97_free_gpio(struct snd_ac97 *ac97)
168168
* it. The caller is responsible to either call device_add(&ac97->dev) to
169169
* register the device, or to call put_device(&ac97->dev) to free the device.
170170
*
171-
* Returns: A snd_ac97 device or a PTR_ERR in case of an error.
171+
* Returns: A snd_ac97 device or an ERR_PTR in case of an error.
172172
*/
173173
struct snd_ac97 *snd_soc_alloc_ac97_component(struct snd_soc_component *component)
174174
{
@@ -207,7 +207,7 @@ EXPORT_SYMBOL(snd_soc_alloc_ac97_component);
207207
* the device and check if it matches the expected ID. If it doesn't match an
208208
* error will be returned and device will not be registered.
209209
*
210-
* Returns: A PTR_ERR() on failure or a valid snd_ac97 struct on success.
210+
* Returns: An ERR_PTR on failure or a valid snd_ac97 struct on success.
211211
*/
212212
struct snd_ac97 *snd_soc_new_ac97_component(struct snd_soc_component *component,
213213
unsigned int id, unsigned int id_mask)

0 commit comments

Comments
 (0)