* [PATCH] ASoC: soc-ac97: Fix the incorrect description
@ 2024-09-08 12:41 Tang Bin
2024-09-08 15:15 ` Markus Elfring
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Tang Bin @ 2024-09-08 12:41 UTC (permalink / raw)
To: lgirdwood, broonie, perex, tiwai; +Cc: linux-sound, linux-kernel, Tang Bin
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: 47e039413cac ("ASoC: soc-ac97: Return correct error codes")
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
---
sound/soc/soc-ac97.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/soc-ac97.c b/sound/soc/soc-ac97.c
index 4e4fe29ad..079e4ff5a 100644
--- a/sound/soc/soc-ac97.c
+++ b/sound/soc/soc-ac97.c
@@ -168,7 +168,7 @@ static void snd_soc_ac97_free_gpio(struct snd_ac97 *ac97)
* it. The caller is responsible to either call device_add(&ac97->dev) to
* register the device, or to call put_device(&ac97->dev) to free the device.
*
- * Returns: A snd_ac97 device or a PTR_ERR in case of an error.
+ * Returns: A snd_ac97 device or an ERR_PTR in case of an error.
*/
struct snd_ac97 *snd_soc_alloc_ac97_component(struct snd_soc_component *component)
{
@@ -207,7 +207,7 @@ EXPORT_SYMBOL(snd_soc_alloc_ac97_component);
* the device and check if it matches the expected ID. If it doesn't match an
* error will be returned and device will not be registered.
*
- * Returns: A PTR_ERR() on failure or a valid snd_ac97 struct on success.
+ * Returns: An ERR_PTR on failure or a valid snd_ac97 struct on success.
*/
struct snd_ac97 *snd_soc_new_ac97_component(struct snd_soc_component *component,
unsigned int id, unsigned int id_mask)
--
2.33.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: soc-ac97: Fix the incorrect description
2024-09-08 12:41 [PATCH] ASoC: soc-ac97: Fix the incorrect description Tang Bin
@ 2024-09-08 15:15 ` Markus Elfring
2024-09-09 17:26 ` Mark Brown
2024-09-10 17:02 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Markus Elfring @ 2024-09-08 15:15 UTC (permalink / raw)
To: Tang Bin, linux-sound, Jaroslav Kysela, Liam Girdwood,
Mark Brown, Takashi Iwai
Cc: LKML
> In the function snd_soc_alloc_ac97_component &
> snd_soc_new_ac97_component, the error return is
> ERR_PTR, so fix the incorrect description.
1. You may occasionally put more than 47 characters into text lines
of such a change description.
2. How do you think about to use the term “error pointer” here
(instead of the mentioned inline function name)?
https://elixir.bootlin.com/linux/v6.11-rc6/source/include/linux/err.h#L31
Regards,
Markus
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: soc-ac97: Fix the incorrect description
2024-09-08 12:41 [PATCH] ASoC: soc-ac97: Fix the incorrect description Tang Bin
2024-09-08 15:15 ` Markus Elfring
@ 2024-09-09 17:26 ` Mark Brown
2024-09-10 17:02 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2024-09-09 17:26 UTC (permalink / raw)
To: Tang Bin; +Cc: lgirdwood, perex, tiwai, linux-sound, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 579 bytes --]
On Sun, Sep 08, 2024 at 08:41:23PM +0800, Tang Bin wrote:
> 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: 47e039413cac ("ASoC: soc-ac97: Return correct error codes")
> Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
That commit hash corresponds to "ASoC: Add support for allocating AC'97
device before registering it" which is not what your Fixes tag says,
there is a commit with that title but it's got hash
76f5aaabce492aa6991c28c96bb78b00b05d06c5.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: soc-ac97: Fix the incorrect description
2024-09-08 12:41 [PATCH] ASoC: soc-ac97: Fix the incorrect description Tang Bin
2024-09-08 15:15 ` Markus Elfring
2024-09-09 17:26 ` Mark Brown
@ 2024-09-10 17:02 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2024-09-10 17:02 UTC (permalink / raw)
To: lgirdwood, perex, tiwai, Tang Bin; +Cc: linux-sound, linux-kernel
On Sun, 08 Sep 2024 20:41:23 +0800, Tang Bin wrote:
> In the function snd_soc_alloc_ac97_component &
> snd_soc_new_ac97_component, the error return is
> ERR_PTR, so fix the incorrect description.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: soc-ac97: Fix the incorrect description
commit: 86a7f453e99c3c202ac1623557e4f57bd73fc88c
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-09-10 17:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-08 12:41 [PATCH] ASoC: soc-ac97: Fix the incorrect description Tang Bin
2024-09-08 15:15 ` Markus Elfring
2024-09-09 17:26 ` Mark Brown
2024-09-10 17:02 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®