]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: wm_hubs: Use str_enable_disable() in wm_hubs_update_class_w()
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 10 Feb 2025 11:58:03 +0000 (12:58 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 17 Feb 2025 12:09:42 +0000 (12:09 +0000)
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/20250210115804.53504-3-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_hubs.c

index 0c881846f485faeedb7272aa8513f37cb9f82964..196ddb224e6dc3cdf4bd999212d3499bfd15d21c 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/pm.h>
 #include <linux/i2c.h>
 #include <linux/mfd/wm8994/registers.h>
+#include <linux/string_choices.h>
 #include <sound/core.h>
 #include <sound/pcm.h>
 #include <sound/pcm_params.h>
@@ -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);