From: Thorsten Blum Date: Tue, 4 Feb 2025 15:38:04 +0000 (+0100) Subject: ASoC: SOF: mediatek: Use str_on_off() helper function X-Git-Tag: v6.15-rc1~173^2~4^2~144 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f75771987f32a9f512c8944e70e343f8c6d71c1;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://patch.msgid.link/20250204153806.3587-2-thorsten.blum@linux.dev Signed-off-by: Mark Brown --- diff --git a/sound/soc/sof/mediatek/mt8195/mt8195-clk.c b/sound/soc/sof/mediatek/mt8195/mt8195-clk.c index 7cffcad00f9b7..2c2c4cd323fc6 100644 --- a/sound/soc/sof/mediatek/mt8195/mt8195-clk.c +++ b/sound/soc/sof/mediatek/mt8195/mt8195-clk.c @@ -8,6 +8,7 @@ #include #include +#include #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],