Skip to content

Commit a83678b

Browse files
tobluxbroonie
authored andcommitted
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>
1 parent 530e5ad commit a83678b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

sound/soc/codecs/madera.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/module.h>
1212
#include <linux/pm_runtime.h>
1313
#include <linux/slab.h>
14+
#include <linux/string_choices.h>
1415
#include <sound/pcm.h>
1516
#include <sound/pcm_params.h>
1617
#include <sound/tlv.h>
@@ -3965,7 +3966,7 @@ static int madera_enable_fll(struct madera_fll *fll)
39653966
}
39663967

39673968
madera_fll_dbg(fll, "Enabling FLL, initially %s\n",
3968-
already_enabled ? "enabled" : "disabled");
3969+
str_enabled_disabled(already_enabled));
39693970

39703971
if (fll->fout < MADERA_FLL_MIN_FOUT ||
39713972
fll->fout > MADERA_FLL_MAX_FOUT) {
@@ -4252,7 +4253,7 @@ static int madera_enable_fll_ao(struct madera_fll *fll,
42524253
pm_runtime_get_sync(madera->dev);
42534254

42544255
madera_fll_dbg(fll, "Enabling FLL_AO, initially %s\n",
4255-
already_enabled ? "enabled" : "disabled");
4256+
str_enabled_disabled(already_enabled));
42564257

42574258
/* FLL_AO_HOLD must be set before configuring any registers */
42584259
regmap_update_bits(fll->madera->regmap,
@@ -4576,7 +4577,7 @@ static int madera_fllhj_enable(struct madera_fll *fll)
45764577
pm_runtime_get_sync(madera->dev);
45774578

45784579
madera_fll_dbg(fll, "Enabling FLL, initially %s\n",
4579-
already_enabled ? "enabled" : "disabled");
4580+
str_enabled_disabled(already_enabled));
45804581

45814582
/* FLLn_HOLD must be set before configuring any registers */
45824583
regmap_update_bits(fll->madera->regmap,

0 commit comments

Comments
 (0)