diff options
author | Jeffy Chen <jeffy.chen@rock-chips.com> | 2017-08-30 05:58:14 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-30 11:12:53 -0400 |
commit | 1fe165b7e9c3e1b1cfa98310979db0814c7445ea (patch) | |
tree | 3065781d728bbae643c4ff5df7e658869bcd133d | |
parent | aa71fba41b6fdcfe7d7772b057b76177304775dd (diff) |
ASoC: rockchip: constify snd_soc_ops structures
Add const to dp/dmic snd_soc_ops.
Fixes: 626d84db64d7 (ASoC: rockchip: Add support for DMIC codec)
Fixes: 3313faf1053e (ASoC: rockchip: Add support for DP codec)
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/rockchip/rk3399_gru_sound.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc/rockchip/rk3399_gru_sound.c index 5ab25962cabd..0513fe480353 100644 --- a/sound/soc/rockchip/rk3399_gru_sound.c +++ b/sound/soc/rockchip/rk3399_gru_sound.c | |||
@@ -301,11 +301,11 @@ static const struct snd_soc_ops rockchip_sound_da7219_ops = { | |||
301 | .hw_params = rockchip_sound_da7219_hw_params, | 301 | .hw_params = rockchip_sound_da7219_hw_params, |
302 | }; | 302 | }; |
303 | 303 | ||
304 | static struct snd_soc_ops rockchip_sound_cdndp_ops = { | 304 | static const struct snd_soc_ops rockchip_sound_cdndp_ops = { |
305 | .hw_params = rockchip_sound_cdndp_hw_params, | 305 | .hw_params = rockchip_sound_cdndp_hw_params, |
306 | }; | 306 | }; |
307 | 307 | ||
308 | static struct snd_soc_ops rockchip_sound_dmic_ops = { | 308 | static const struct snd_soc_ops rockchip_sound_dmic_ops = { |
309 | .hw_params = rockchip_sound_dmic_hw_params, | 309 | .hw_params = rockchip_sound_dmic_hw_params, |
310 | }; | 310 | }; |
311 | 311 | ||