* [PATCH] ASoC: atmel: atmel-classd: Use str_enabled_disabled() helper
@ 2025-02-22 22:59 Thorsten Blum
2025-02-24 7:26 ` Andrei Simion
2025-02-25 13:38 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Thorsten Blum @ 2025-02-22 22:59 UTC (permalink / raw)
To: Claudiu Beznea, Andrei Simion, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai, Nicolas Ferre, Alexandre Belloni
Cc: Thorsten Blum, linux-sound, linux-arm-kernel, linux-kernel
Remove hard-coded strings by using the str_enabled_disabled() helper
function.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
sound/soc/atmel/atmel-classd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel/atmel-classd.c
index ba314b279919..1f8c60d2de82 100644
--- a/sound/soc/atmel/atmel-classd.c
+++ b/sound/soc/atmel/atmel-classd.c
@@ -11,6 +11,7 @@
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
+#include <linux/string_choices.h>
#include <sound/core.h>
#include <sound/dmaengine_pcm.h>
#include <sound/pcm_params.h>
@@ -275,7 +276,7 @@ static int atmel_classd_component_probe(struct snd_soc_component *component)
dev_info(component->dev,
"PWM modulation type is %s, non-overlapping is %s\n",
pwm_type[pdata->pwm_type],
- pdata->non_overlap_enable?"enabled":"disabled");
+ str_enabled_disabled(pdata->non_overlap_enable));
return 0;
}
--
2.48.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: atmel: atmel-classd: Use str_enabled_disabled() helper
2025-02-22 22:59 [PATCH] ASoC: atmel: atmel-classd: Use str_enabled_disabled() helper Thorsten Blum
@ 2025-02-24 7:26 ` Andrei Simion
2025-02-25 13:38 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Andrei Simion @ 2025-02-24 7:26 UTC (permalink / raw)
To: thorsten.blum
Cc: alexandre.belloni, linux-kernel, claudiu.beznea, linux-sound,
lgirdwood, broonie, andrei.simion, tiwai, perex, linux-arm-kernel
Hi,
On 23.02.2025 00:59, Thorsten Blum wrote:
> Remove hard-coded strings by using the str_enabled_disabled() helper
> function.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Andrei Simion <andrei.simion@microchip.com>
> ---
> sound/soc/atmel/atmel-classd.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel/atmel-classd.c
> index ba314b279919..1f8c60d2de82 100644
> --- a/sound/soc/atmel/atmel-classd.c
> +++ b/sound/soc/atmel/atmel-classd.c
> @@ -11,6 +11,7 @@
> #include <linux/module.h>
> #include <linux/platform_device.h>
> #include <linux/regmap.h>
> +#include <linux/string_choices.h>
> #include <sound/core.h>
> #include <sound/dmaengine_pcm.h>
> #include <sound/pcm_params.h>
> @@ -275,7 +276,7 @@ static int atmel_classd_component_probe(struct snd_soc_component *component)
> dev_info(component->dev,
> "PWM modulation type is %s, non-overlapping is %s\n",
> pwm_type[pdata->pwm_type],
> - pdata->non_overlap_enable?"enabled":"disabled");
> + str_enabled_disabled(pdata->non_overlap_enable));
>
> return 0;
> }
Best Regards,
Andrei Simion
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: atmel: atmel-classd: Use str_enabled_disabled() helper
2025-02-22 22:59 [PATCH] ASoC: atmel: atmel-classd: Use str_enabled_disabled() helper Thorsten Blum
2025-02-24 7:26 ` Andrei Simion
@ 2025-02-25 13:38 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2025-02-25 13:38 UTC (permalink / raw)
To: Claudiu Beznea, Andrei Simion, Liam Girdwood, Jaroslav Kysela,
Takashi Iwai, Nicolas Ferre, Alexandre Belloni, Thorsten Blum
Cc: linux-sound, linux-arm-kernel, linux-kernel
On Sat, 22 Feb 2025 23:59:25 +0100, Thorsten Blum wrote:
> Remove hard-coded strings by using the str_enabled_disabled() helper
> function.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: atmel: atmel-classd: Use str_enabled_disabled() helper
commit: 88e09306b7e0f8a9e9f9c729ac13ccd11ed9679d
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] 3+ messages in thread
end of thread, other threads:[~2025-02-25 16:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-22 22:59 [PATCH] ASoC: atmel: atmel-classd: Use str_enabled_disabled() helper Thorsten Blum
2025-02-24 7:26 ` Andrei Simion
2025-02-25 13:38 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).