projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae575d2
)
ASoC: Intel: avs: Use str_on_off() in avs_dsp_core_power()
author
Thorsten Blum
<thorsten.blum@linux.dev>
Wed, 12 Feb 2025 09:12:26 +0000
(10:12 +0100)
committer
Mark Brown
<broonie@kernel.org>
Thu, 13 Feb 2025 14:49:48 +0000
(14:49 +0000)
Remove hard-coded strings by using the str_on_off() helper function.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link:
https://patch.msgid.link/20250212091227.1217-3-thorsten.blum@linux.dev
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/dsp.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/intel/avs/dsp.c
b/sound/soc/intel/avs/dsp.c
index 7b47e52c2b395a2294d29c3ad9981efdf6140324..b9de691e9b9b16fd3f3dfabb74f366d27d61aeae 100644
(file)
--- a/
sound/soc/intel/avs/dsp.c
+++ b/
sound/soc/intel/avs/dsp.c
@@
-6,6
+6,7
@@
// Amadeusz Slawinski <amadeuszx.slawinski@linux.intel.com>
//
+#include <linux/string_choices.h>
#include <sound/hdaudio_ext.h>
#include "avs.h"
#include "registers.h"
@@
-39,7
+40,7
@@
int avs_dsp_core_power(struct avs_dev *adev, u32 core_mask, bool power)
AVS_ADSPCS_TIMEOUT_US);
if (ret)
dev_err(adev->dev, "core_mask %d power %s failed: %d\n",
- core_mask,
power ? "on" : "off"
, ret);
+ core_mask,
str_on_off(power)
, ret);
return ret;
}