Skip to content

Commit 87e49eb

Browse files
rfvirgilbroonie
authored andcommitted
ASoC: wm_adsp: Make wm_adsp_fw_text[] const
Add the extra const to wm_adsp_fw_text[] to make the array data const. This array should have been const data but was missing the second const that is needed when declaring a const array of const pointers. Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://patch.msgid.link/20260309145310.1199583-1-rf@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 97af961 commit 87e49eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/codecs/wm_adsp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static const struct cs_dsp_client_ops wm_adsp2_client_ops;
7272

7373
#define WM_ADSP_NUM_FW 13
7474

75-
static const char *wm_adsp_fw_text[WM_ADSP_NUM_FW] = {
75+
static const char * const wm_adsp_fw_text[WM_ADSP_NUM_FW] = {
7676
[WM_ADSP_FW_MBC_VSS] = "MBC/VSS",
7777
[WM_ADSP_FW_HIFI] = "MasterHiFi",
7878
[WM_ADSP_FW_TX] = "Tx",

0 commit comments

Comments
 (0)