aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/codecs/wsa881x.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-01-24 17:39:51 +0100
committerMark Brown <broonie@kernel.org>2023-01-25 12:38:39 +0000
commit65b7b869da9bd3bd0b9fa60e6fe557bfbc0a75e8 (patch)
tree1375eeb0c7369e9edee59a0ccbec55144d0f6e49 /sound/soc/codecs/wsa881x.c
parentASoC: Intel: avs: Simplify probe-component implementation (diff)
downloadwireguard-linux-65b7b869da9bd3bd0b9fa60e6fe557bfbc0a75e8.tar.xz
wireguard-linux-65b7b869da9bd3bd0b9fa60e6fe557bfbc0a75e8.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/20230124163953.345949-1-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wsa881x.c')
-rw-r--r--sound/soc/codecs/wsa881x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wsa881x.c b/sound/soc/codecs/wsa881x.c
index 7a5d31483cfc..35bd6f7727ed 100644
--- a/sound/soc/codecs/wsa881x.c
+++ b/sound/soc/codecs/wsa881x.c
@@ -1106,7 +1106,7 @@ static int wsa881x_bus_config(struct sdw_slave *slave,
return 0;
}
-static struct sdw_slave_ops wsa881x_slave_ops = {
+static const struct sdw_slave_ops wsa881x_slave_ops = {
.update_status = wsa881x_update_status,
.bus_config = wsa881x_bus_config,
.port_prep = wsa881x_port_prep,