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: cros_ec_codec: Use str_enable_disable() helper in wov_enable_put()

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

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Acked-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://patch.msgid.link/20250220120100.1530-2-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Thorsten Blum and committed by
Mark Brown
10efa807 88e09306

+2 -1
+2 -1
sound/soc/codecs/cros_ec_codec.c
··· 21 21 #include <linux/platform_data/cros_ec_commands.h> 22 22 #include <linux/platform_data/cros_ec_proto.h> 23 23 #include <linux/platform_device.h> 24 + #include <linux/string_choices.h> 24 25 #include <sound/pcm.h> 25 26 #include <sound/pcm_params.h> 26 27 #include <sound/soc.h> ··· 658 657 (uint8_t *)&p, sizeof(p), NULL, 0); 659 658 if (ret) { 660 659 dev_err(priv->dev, "failed to %s wov\n", 661 - enabled ? "enable" : "disable"); 660 + str_enable_disable(enabled)); 662 661 return ret; 663 662 } 664 663