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: amd: acp: Use str_low_high() helper function

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

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

authored by

Thorsten Blum and committed by
Mark Brown
b3d993c7 67868182

+3 -2
+3 -2
sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c
··· 19 19 #include <linux/io.h> 20 20 #include <linux/acpi.h> 21 21 #include <linux/dmi.h> 22 + #include <linux/string_choices.h> 22 23 #include "../acp-mach.h" 23 24 #include "acp3x-es83xx.h" 24 25 ··· 242 241 243 242 dev_info(priv->codec_dev, "speaker gpio %d active %s, headphone gpio %d active %s\n", 244 243 priv->enable_spk_gpio.crs_entry_index, 245 - priv->enable_spk_gpio.active_low ? "low" : "high", 244 + str_low_high(priv->enable_spk_gpio.active_low), 246 245 priv->enable_hp_gpio.crs_entry_index, 247 - priv->enable_hp_gpio.active_low ? "low" : "high"); 246 + str_low_high(priv->enable_hp_gpio.active_low)); 248 247 return 0; 249 248 } 250 249