linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [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

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).