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: 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 <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250210115804.53504-3-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Thorsten Blum and committed by
Mark Brown
9f25b6f2 5c7e4c4d

+2 -1
+2 -1
sound/soc/codecs/wm_hubs.c
··· 14 14 #include <linux/pm.h> 15 15 #include <linux/i2c.h> 16 16 #include <linux/mfd/wm8994/registers.h> 17 + #include <linux/string_choices.h> 17 18 #include <sound/core.h> 18 19 #include <sound/pcm.h> 19 20 #include <sound/pcm_params.h> ··· 675 674 if (hubs->check_class_w_digital && !hubs->check_class_w_digital(component)) 676 675 enable = false; 677 676 678 - dev_vdbg(component->dev, "Class W %s\n", enable ? "enabled" : "disabled"); 677 + dev_vdbg(component->dev, "Class W %s\n", str_enabled_disabled(enable)); 679 678 680 679 snd_soc_component_update_bits(component, WM8993_CLASS_W_0, 681 680 WM8993_CP_DYN_V | WM8993_CP_DYN_FREQ, enable);