diff options
author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-02-04 16:38:04 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-02-05 12:46:01 +0000 |
commit | 3f75771987f32a9f512c8944e70e343f8c6d71c1 (patch) | |
tree | 9baff1d0f0e2962ba1c36c0f0aee827ecd0e2f71 | |
parent | b3d993c7566fed1c027c5c18f3ef482ba8e6307a (diff) |
ASoC: SOF: mediatek: Use str_on_off() helper function
Remove hard-coded strings by using the str_on_off() helper function.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250204153806.3587-2-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sof/mediatek/mt8195/mt8195-clk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/sof/mediatek/mt8195/mt8195-clk.c b/sound/soc/sof/mediatek/mt8195/mt8195-clk.c index 7cffcad00f9b..2c2c4cd323fc 100644 --- a/sound/soc/sof/mediatek/mt8195/mt8195-clk.c +++ b/sound/soc/sof/mediatek/mt8195/mt8195-clk.c @@ -8,6 +8,7 @@ #include <linux/clk.h> #include <linux/io.h> +#include <linux/string_choices.h> #include "mt8195.h" #include "mt8195-clk.h" #include "../adsp_helper.h" @@ -114,7 +115,7 @@ static int adsp_default_clk_init(struct snd_sof_dev *sdev, bool enable) struct adsp_priv *priv = sdev->pdata->hw_pdata; int ret; - dev_dbg(dev, "%s: %s\n", __func__, enable ? "on" : "off"); + dev_dbg(dev, "%s: %s\n", __func__, str_on_off(enable)); if (enable) { ret = clk_set_parent(priv->clk[CLK_TOP_ADSP], |