aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/codecs/rt1017-sdca-sdw.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2024-02-08 11:50:11 +0100
committerMark Brown <broonie@kernel.org>2024-02-08 11:54:13 +0000
commitfd38b4e41096f5c72a1623ba5984e2d4d2a799c4 (patch)
treeadca11fd9d5b15f0c9ce7c59b7e81f36a569717f /sound/soc/codecs/rt1017-sdca-sdw.c
parentASoC: dt-bindings: atmel,asoc-wm8904: Convert to json-schema (diff)
downloadwireguard-linux-fd38b4e41096f5c72a1623ba5984e2d4d2a799c4.tar.xz
wireguard-linux-fd38b4e41096f5c72a1623ba5984e2d4d2a799c4.zip
ASoC: codecs: constify static sdw_slave_ops struct
The struct sdw_slave_ops is not modified and sdw_driver takes pointer to const, so make it a const for code safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240208105011.128294-1-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt1017-sdca-sdw.c')
-rw-r--r--sound/soc/codecs/rt1017-sdca-sdw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt1017-sdca-sdw.c b/sound/soc/codecs/rt1017-sdca-sdw.c
index 7295f44c77eb..4dbbd8bdaaac 100644
--- a/sound/soc/codecs/rt1017-sdca-sdw.c
+++ b/sound/soc/codecs/rt1017-sdca-sdw.c
@@ -520,7 +520,7 @@ static const struct snd_soc_dapm_route rt1017_sdca_dapm_routes[] = {
{ "DP2TX", NULL, "V Sense" },
};
-static struct sdw_slave_ops rt1017_sdca_slave_ops = {
+static const struct sdw_slave_ops rt1017_sdca_slave_ops = {
.read_prop = rt1017_sdca_read_prop,
.update_status = rt1017_sdca_update_status,
};