Skip to content

Commit 10efa80

Browse files
tobluxbroonie
authored andcommitted
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>
1 parent 88e0930 commit 10efa80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sound/soc/codecs/cros_ec_codec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <linux/platform_data/cros_ec_commands.h>
2222
#include <linux/platform_data/cros_ec_proto.h>
2323
#include <linux/platform_device.h>
24+
#include <linux/string_choices.h>
2425
#include <sound/pcm.h>
2526
#include <sound/pcm_params.h>
2627
#include <sound/soc.h>
@@ -657,7 +658,7 @@ static int wov_enable_put(struct snd_kcontrol *kcontrol,
657658
(uint8_t *)&p, sizeof(p), NULL, 0);
658659
if (ret) {
659660
dev_err(priv->dev, "failed to %s wov\n",
660-
enabled ? "enable" : "disable");
661+
str_enable_disable(enabled));
661662
return ret;
662663
}
663664

0 commit comments

Comments
 (0)