From: Thorsten Blum Date: Mon, 10 Feb 2025 11:58:03 +0000 (+0100) Subject: ASoC: wm_hubs: Use str_enable_disable() in wm_hubs_update_class_w() X-Git-Tag: v6.15-rc1~173^2~4^2~111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f25b6f2568d50c247a8e3b031a0a5caee8c17d2;p=thirdparty%2Fkernel%2Flinux.git ASoC: wm_hubs: Use str_enable_disable() in wm_hubs_update_class_w() Remove hard-coded strings by using the str_enable_disable() helper function. Signed-off-by: Thorsten Blum Link: https://patch.msgid.link/20250210115804.53504-3-thorsten.blum@linux.dev Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c index 0c881846f485f..196ddb224e6dc 100644 --- a/sound/soc/codecs/wm_hubs.c +++ b/sound/soc/codecs/wm_hubs.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -674,7 +675,7 @@ void wm_hubs_update_class_w(struct snd_soc_component *component) if (hubs->check_class_w_digital && !hubs->check_class_w_digital(component)) enable = false; - dev_vdbg(component->dev, "Class W %s\n", enable ? "enabled" : "disabled"); + dev_vdbg(component->dev, "Class W %s\n", str_enabled_disabled(enable)); snd_soc_component_update_bits(component, WM8993_CLASS_W_0, WM8993_CP_DYN_V | WM8993_CP_DYN_FREQ, enable);