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: 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>

authored by

Thorsten Blum and committed by
Mark Brown
3f757719 b3d993c7

+2 -1
+2 -1
sound/soc/sof/mediatek/mt8195/mt8195-clk.c
··· 8 8 9 9 #include <linux/clk.h> 10 10 #include <linux/io.h> 11 + #include <linux/string_choices.h> 11 12 #include "mt8195.h" 12 13 #include "mt8195-clk.h" 13 14 #include "../adsp_helper.h" ··· 115 114 struct adsp_priv *priv = sdev->pdata->hw_pdata; 116 115 int ret; 117 116 118 - dev_dbg(dev, "%s: %s\n", __func__, enable ? "on" : "off"); 117 + dev_dbg(dev, "%s: %s\n", __func__, str_on_off(enable)); 119 118 120 119 if (enable) { 121 120 ret = clk_set_parent(priv->clk[CLK_TOP_ADSP],