ASoC: wm_adsp: Make cirrus_dir const
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Thu, 22 May 2025 10:38:16 +0000 (11:38 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 22 May 2025 11:29:53 +0000 (12:29 +0100)
The cirrus_dir pointer should be const data but was missing the second
const needed to achieve this.

I haven't marked this as a 'Fixes' because it isn't causing any bugs,
it's only a code improvement.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20250522103816.543919-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c

index e822979e6a195bfb58aae8d2ee0f54cd042dbf6d..3c580faab3b7dbc57886c0a44b6077cd1ea0de21 100644 (file)
@@ -775,7 +775,7 @@ static int wm_adsp_request_firmware_file(struct wm_adsp *dsp,
        return ret;
 }
 
-static const char *cirrus_dir = "cirrus/";
+static const char * const cirrus_dir = "cirrus/";
 static int wm_adsp_request_firmware_files(struct wm_adsp *dsp,
                                          const struct firmware **wmfw_firmware,
                                          char **wmfw_filename,