summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/max98363.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 12:54:13 +0100
commitfd38b4e41096f5c72a1623ba5984e2d4d2a799c4 (patch)
treeadca11fd9d5b15f0c9ce7c59b7e81f36a569717f /sound/soc/codecs/max98363.c
parentASoC: dt-bindings: atmel,asoc-wm8904: Convert to json-schema (diff)
downloadlinux-fd38b4e41096f5c72a1623ba5984e2d4d2a799c4.tar.xz
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/max98363.c')
-rw-r--r--sound/soc/codecs/max98363.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98363.c b/sound/soc/codecs/max98363.c
index a2cca3436c68..950105e5bffd 100644
--- a/sound/soc/codecs/max98363.c
+++ b/sound/soc/codecs/max98363.c
@@ -314,7 +314,7 @@ static int max98363_update_status(struct sdw_slave *slave,
return max98363_io_init(slave);
}
-static struct sdw_slave_ops max98363_slave_ops = {
+static const struct sdw_slave_ops max98363_slave_ops = {
.read_prop = max98363_read_prop,
.update_status = max98363_update_status,
};