Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Richard Fitzgerald and committed by
Mark Brown
87e49eb0 97af9615

+1 -1
+1 -1
sound/soc/codecs/wm_adsp.c
··· 72 72 73 73 #define WM_ADSP_NUM_FW 13 74 74 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] = { 76 76 [WM_ADSP_FW_MBC_VSS] = "MBC/VSS", 77 77 [WM_ADSP_FW_HIFI] = "MasterHiFi", 78 78 [WM_ADSP_FW_TX] = "Tx",