mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-08 19:55:16 -05:00
ASoC: zx-i2s: constify snd_soc_dai_ops structure
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
5771a8c088
commit
45d059a33a
1 changed files with 1 additions and 1 deletions
|
|
@ -357,7 +357,7 @@ static void zx_i2s_shutdown(struct snd_pcm_substream *substream,
|
|||
clk_disable_unprepare(zx_i2s->dai_pclk);
|
||||
}
|
||||
|
||||
static struct snd_soc_dai_ops zx_i2s_dai_ops = {
|
||||
static const struct snd_soc_dai_ops zx_i2s_dai_ops = {
|
||||
.trigger = zx_i2s_trigger,
|
||||
.hw_params = zx_i2s_hw_params,
|
||||
.set_fmt = zx_i2s_set_fmt,
|
||||
|
|
|
|||
Loading…
Reference in a new issue