aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wcd938x.h
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2024-06-12 18:15:30 +0200
committerMark Brown <broonie@kernel.org>2024-06-18 16:47:29 +0100
commitaf57d5e3b58886ee5efc6ba9d0e25c8d1d3c3c37 (patch)
treef00d010bb05a63692d816018ce1beddfbc8b8f01 /sound/soc/codecs/wcd938x.h
parent424e6bc4328b39a924cc2acb251868cfd23fe369 (diff)
ASoC: codecs: wcd938x: Constify wcd938x_sdw_ch_info
Driver does not modify static wcd938x_sdw_ch_info array, so it can be made const for code safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://msgid.link/r/20240612-asoc-wcd9xxx-wide-cleanups-v1-17-0d15885b2a06@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wcd938x.h')
-rw-r--r--sound/soc/codecs/wcd938x.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wcd938x.h b/sound/soc/codecs/wcd938x.h
index 0d332cb555ac..09e39a19fbe4 100644
--- a/sound/soc/codecs/wcd938x.h
+++ b/sound/soc/codecs/wcd938x.h
@@ -653,7 +653,7 @@ struct wcd938x_sdw_priv {
struct sdw_stream_config sconfig;
struct sdw_stream_runtime *sruntime;
struct sdw_port_config port_config[WCD938X_MAX_SWR_PORTS];
- struct wcd938x_sdw_ch_info *ch_info;
+ const struct wcd938x_sdw_ch_info *ch_info;
bool port_enable[WCD938X_MAX_SWR_CH_IDS];
int active_ports;
int num_ports;