diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-07-13 22:38:43 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-07-17 17:54:30 +0200 |
commit | 73a995ca90544914a97ed33a4f7baef44ad110d0 (patch) | |
tree | e05dc31d3846a587c52c9fd1a5cfb6473e8c9026 | |
parent | Linux v4.13-rc1 (diff) | |
download | linux-73a995ca90544914a97ed33a4f7baef44ad110d0.tar.xz linux-73a995ca90544914a97ed33a4f7baef44ad110d0.zip |
ASoC: dwc: 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 <garsilva@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/dwc/dwc-i2s.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/dwc/dwc-i2s.c b/sound/soc/dwc/dwc-i2s.c index 916067638180..eebe9d34e7a0 100644 --- a/sound/soc/dwc/dwc-i2s.c +++ b/sound/soc/dwc/dwc-i2s.c @@ -381,7 +381,7 @@ static int dw_i2s_set_fmt(struct snd_soc_dai *cpu_dai, unsigned int fmt) return ret; } -static struct snd_soc_dai_ops dw_i2s_dai_ops = { +static const struct snd_soc_dai_ops dw_i2s_dai_ops = { .startup = dw_i2s_startup, .shutdown = dw_i2s_shutdown, .hw_params = dw_i2s_hw_params, |