]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: atmel: atmel-classd: Use str_enabled_disabled() helper
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 22 Feb 2025 22:59:25 +0000 (23:59 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 24 Feb 2025 15:00:58 +0000 (15:00 +0000)
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>
Link: https://patch.msgid.link/20250222225925.539840-2-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/atmel-classd.c

index ba314b2799190e760143e55ffd956f35d4c5127c..1f8c60d2de823fa3f12a58f1338020afdbdacccf 100644 (file)
@@ -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;
 }