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: madera: Use str_enabled_disabled() helper function

Remove hard-coded strings by using the str_enabled_disabled() helper
function.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20250107011355.2035-1-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Thorsten Blum and committed by
Mark Brown
a83678be 530e5ada

+4 -3
+4 -3
sound/soc/codecs/madera.c
··· 11 11 #include <linux/module.h> 12 12 #include <linux/pm_runtime.h> 13 13 #include <linux/slab.h> 14 + #include <linux/string_choices.h> 14 15 #include <sound/pcm.h> 15 16 #include <sound/pcm_params.h> 16 17 #include <sound/tlv.h> ··· 3966 3965 } 3967 3966 3968 3967 madera_fll_dbg(fll, "Enabling FLL, initially %s\n", 3969 - already_enabled ? "enabled" : "disabled"); 3968 + str_enabled_disabled(already_enabled)); 3970 3969 3971 3970 if (fll->fout < MADERA_FLL_MIN_FOUT || 3972 3971 fll->fout > MADERA_FLL_MAX_FOUT) { ··· 4253 4252 pm_runtime_get_sync(madera->dev); 4254 4253 4255 4254 madera_fll_dbg(fll, "Enabling FLL_AO, initially %s\n", 4256 - already_enabled ? "enabled" : "disabled"); 4255 + str_enabled_disabled(already_enabled)); 4257 4256 4258 4257 /* FLL_AO_HOLD must be set before configuring any registers */ 4259 4258 regmap_update_bits(fll->madera->regmap, ··· 4577 4576 pm_runtime_get_sync(madera->dev); 4578 4577 4579 4578 madera_fll_dbg(fll, "Enabling FLL, initially %s\n", 4580 - already_enabled ? "enabled" : "disabled"); 4579 + str_enabled_disabled(already_enabled)); 4581 4580 4582 4581 /* FLLn_HOLD must be set before configuring any registers */ 4583 4582 regmap_update_bits(fll->madera->regmap,