projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88e0930
)
ASoC: cros_ec_codec: Use str_enable_disable() helper in wov_enable_put()
author
Thorsten Blum
<thorsten.blum@linux.dev>
Thu, 20 Feb 2025 12:01:01 +0000
(13:01 +0100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 24 Feb 2025 15:00:59 +0000
(15:00 +0000)
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>
sound/soc/codecs/cros_ec_codec.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/cros_ec_codec.c
b/sound/soc/codecs/cros_ec_codec.c
index
11e7b3f
..
571222e
100644
(file)
--- a/
sound/soc/codecs/cros_ec_codec.c
+++ b/
sound/soc/codecs/cros_ec_codec.c
@@
-21,6
+21,7
@@
#include <linux/platform_data/cros_ec_commands.h>
#include <linux/platform_data/cros_ec_proto.h>
#include <linux/platform_device.h>
+#include <linux/string_choices.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
@@
-657,7
+658,7
@@
static int wov_enable_put(struct snd_kcontrol *kcontrol,
(uint8_t *)&p, sizeof(p), NULL, 0);
if (ret) {
dev_err(priv->dev, "failed to %s wov\n",
-
enabled ? "enable" : "disable"
);
+
str_enable_disable(enabled)
);
return ret;
}