Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: atmel: atmel-classd: Use str_enabled_disabled() helper

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>

authored by

Thorsten Blum and committed by
Mark Brown
88e09306 91b75129

+2 -1
+2 -1
sound/soc/atmel/atmel-classd.c
··· 11 11 #include <linux/module.h> 12 12 #include <linux/platform_device.h> 13 13 #include <linux/regmap.h> 14 + #include <linux/string_choices.h> 14 15 #include <sound/core.h> 15 16 #include <sound/dmaengine_pcm.h> 16 17 #include <sound/pcm_params.h> ··· 276 275 dev_info(component->dev, 277 276 "PWM modulation type is %s, non-overlapping is %s\n", 278 277 pwm_type[pdata->pwm_type], 279 - pdata->non_overlap_enable?"enabled":"disabled"); 278 + str_enabled_disabled(pdata->non_overlap_enable)); 280 279 281 280 return 0; 282 281 }