Skip to content

Commit 994719e

Browse files
tobluxbroonie
authored andcommitted
ASoC: Intel: avs: Use str_on_off() in avs_dsp_core_power()
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>
1 parent ae575d2 commit 994719e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sound/soc/intel/avs/dsp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// Amadeusz Slawinski <amadeuszx.slawinski@linux.intel.com>
77
//
88

9+
#include <linux/string_choices.h>
910
#include <sound/hdaudio_ext.h>
1011
#include "avs.h"
1112
#include "registers.h"
@@ -39,7 +40,7 @@ int avs_dsp_core_power(struct avs_dev *adev, u32 core_mask, bool power)
3940
AVS_ADSPCS_TIMEOUT_US);
4041
if (ret)
4142
dev_err(adev->dev, "core_mask %d power %s failed: %d\n",
42-
core_mask, power ? "on" : "off", ret);
43+
core_mask, str_on_off(power), ret);
4344

4445
return ret;
4546
}

0 commit comments

Comments
 (0)