From: Gustavo A. R. Silva Date: Thu, 13 Jul 2017 20:38:43 +0000 (-0500) Subject: ASoC: dwc: constify snd_soc_dai_ops structure X-Git-Tag: v4.14-rc1~114^2~3^2~11^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73a995ca90544914a97ed33a4f7baef44ad110d0;p=thirdparty%2Flinux.git 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/dwc/dwc-i2s.c b/sound/soc/dwc/dwc-i2s.c index 9160676381808..eebe9d34e7a07 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,