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: Intel: Use str_enable_disable() helper

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

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250210120132.53831-2-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Thorsten Blum and committed by
Mark Brown
e08fe24c 9f25b6f2

+4 -3
+4 -3
sound/soc/sof/intel/mtl.c
··· 11 11 12 12 #include <linux/debugfs.h> 13 13 #include <linux/firmware.h> 14 + #include <linux/string_choices.h> 14 15 #include <sound/sof/ipc4/header.h> 15 16 #include <trace/events/sof_intel.h> 16 17 #include "../ipc4-priv.h" ··· 177 176 HDA_DSP_REG_POLL_INTERVAL_US, HDA_DSP_RESET_TIMEOUT_US); 178 177 if (ret < 0) 179 178 dev_err(sdev->dev, "failed to set SoundWire IPC interrupt %s\n", 180 - enable ? "enable" : "disable"); 179 + str_enable_disable(enable)); 181 180 } 182 181 183 182 int mtl_enable_interrupts(struct snd_sof_dev *sdev, bool enable) ··· 210 209 HDA_DSP_REG_POLL_INTERVAL_US, HDA_DSP_RESET_TIMEOUT_US); 211 210 if (ret < 0) { 212 211 dev_err(sdev->dev, "failed to %s Host IPC and/or SOUNDWIRE\n", 213 - enable ? "enable" : "disable"); 212 + str_enable_disable(enable)); 214 213 return ret; 215 214 } 216 215 ··· 229 228 HDA_DSP_REG_POLL_INTERVAL_US, HDA_DSP_RESET_TIMEOUT_US); 230 229 if (ret < 0) { 231 230 dev_err(sdev->dev, "failed to set Host IPC interrupt %s\n", 232 - enable ? "enable" : "disable"); 231 + str_enable_disable(enable)); 233 232 return ret; 234 233 } 235 234