* [PATCH] ASoC: wm_hubs: Use str_enable_disable() in wm_hubs_update_class_w()
@ 2025-02-10 11:58 Thorsten Blum
2025-02-17 10:45 ` Charles Keepax
2025-02-17 13:38 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Thorsten Blum @ 2025-02-10 11:58 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai
Cc: Thorsten Blum, patches, linux-sound, linux-kernel
Remove hard-coded strings by using the str_enable_disable() helper
function.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
sound/soc/codecs/wm_hubs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c
index 0c881846f485..196ddb224e6d 100644
--- a/sound/soc/codecs/wm_hubs.c
+++ b/sound/soc/codecs/wm_hubs.c
@@ -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);
--
2.48.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: wm_hubs: Use str_enable_disable() in wm_hubs_update_class_w()
2025-02-10 11:58 [PATCH] ASoC: wm_hubs: Use str_enable_disable() in wm_hubs_update_class_w() Thorsten Blum
@ 2025-02-17 10:45 ` Charles Keepax
2025-02-17 13:38 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Charles Keepax @ 2025-02-17 10:45 UTC (permalink / raw)
To: Thorsten Blum
Cc: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai, patches,
linux-sound, linux-kernel
On Mon, Feb 10, 2025 at 12:58:03PM +0100, Thorsten Blum wrote:
> Remove hard-coded strings by using the str_enable_disable() helper
> function.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
> ---
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: wm_hubs: Use str_enable_disable() in wm_hubs_update_class_w()
2025-02-10 11:58 [PATCH] ASoC: wm_hubs: Use str_enable_disable() in wm_hubs_update_class_w() Thorsten Blum
2025-02-17 10:45 ` Charles Keepax
@ 2025-02-17 13:38 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2025-02-17 13:38 UTC (permalink / raw)
To: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Thorsten Blum
Cc: patches, linux-sound, linux-kernel
On Mon, 10 Feb 2025 12:58:03 +0100, Thorsten Blum wrote:
> Remove hard-coded strings by using the str_enable_disable() helper
> function.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: wm_hubs: Use str_enable_disable() in wm_hubs_update_class_w()
commit: 9f25b6f2568d50c247a8e3b031a0a5caee8c17d2
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-02-17 13:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-10 11:58 [PATCH] ASoC: wm_hubs: Use str_enable_disable() in wm_hubs_update_class_w() Thorsten Blum
2025-02-17 10:45 ` Charles Keepax
2025-02-17 13:38 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox