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 12:38:39 +0000 |
commit | 65b7b869da9bd3bd0b9fa60e6fe557bfbc0a75e8 (patch) | |
tree | 1375eeb0c7369e9edee59a0ccbec55144d0f6e49 /sound/soc/codecs/rt1318-sdw.c | |
parent | f337703b229f6031a40199dfe050e04065cea0e8 (diff) | |
download | linux-stable-65b7b869da9bd3bd0b9fa60e6fe557bfbc0a75e8.tar.gz linux-stable-65b7b869da9bd3bd0b9fa60e6fe557bfbc0a75e8.tar.bz2 linux-stable-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/rt1318-sdw.c')
-rw-r--r-- | sound/soc/codecs/rt1318-sdw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt1318-sdw.c b/sound/soc/codecs/rt1318-sdw.c index f85f5ab2c6d0..c6ec86e97a6e 100644 --- a/sound/soc/codecs/rt1318-sdw.c +++ b/sound/soc/codecs/rt1318-sdw.c @@ -697,7 +697,7 @@ static int rt1318_sdw_pcm_hw_free(struct snd_pcm_substream *substream, * slave_ops: callbacks for get_clock_stop_mode, clock_stop and * port_prep are not defined for now */ -static struct sdw_slave_ops rt1318_slave_ops = { +static const struct sdw_slave_ops rt1318_slave_ops = { .read_prop = rt1318_read_prop, .update_status = rt1318_update_status, }; |