diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-01-24 17:39:51 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-01-25 13:38:39 +0100 |
commit | 65b7b869da9bd3bd0b9fa60e6fe557bfbc0a75e8 (patch) | |
tree | 1375eeb0c7369e9edee59a0ccbec55144d0f6e49 /sound/soc/codecs/wcd938x-sdw.c | |
parent | ASoC: Intel: avs: Simplify probe-component implementation (diff) | |
download | linux-65b7b869da9bd3bd0b9fa60e6fe557bfbc0a75e8.tar.xz 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/wcd938x-sdw.c')
-rw-r--r-- | sound/soc/codecs/wcd938x-sdw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wcd938x-sdw.c b/sound/soc/codecs/wcd938x-sdw.c index 1bf3c06a2b62..33d1b5ffeaeb 100644 --- a/sound/soc/codecs/wcd938x-sdw.c +++ b/sound/soc/codecs/wcd938x-sdw.c @@ -191,7 +191,7 @@ static int wcd9380_interrupt_callback(struct sdw_slave *slave, return IRQ_HANDLED; } -static struct sdw_slave_ops wcd9380_slave_ops = { +static const struct sdw_slave_ops wcd9380_slave_ops = { .update_status = wcd9380_update_status, .interrupt_callback = wcd9380_interrupt_callback, .bus_config = wcd9380_bus_config, |