summaryrefslogtreecommitdiff
path: root/sound/soc/dwc
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-07-13 15:38:43 -0500
committerMark Brown <broonie@kernel.org>2017-07-17 16:54:30 +0100
commit73a995ca90544914a97ed33a4f7baef44ad110d0 (patch)
treee05dc31d3846a587c52c9fd1a5cfb6473e8c9026 /sound/soc/dwc
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff)
downloadlwn-73a995ca90544914a97ed33a4f7baef44ad110d0.tar.gz
lwn-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>
Diffstat (limited to 'sound/soc/dwc')
-rw-r--r--sound/soc/dwc/dwc-i2s.c2
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,