]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ASoC: dwc: constify snd_soc_dai_ops structure
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 13 Jul 2017 20:38:43 +0000 (15:38 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jul 2017 15:54:30 +0000 (16:54 +0100)
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>
sound/soc/dwc/dwc-i2s.c

index 91606763818089ffe2c4d058eb214f1e5714765a..eebe9d34e7a07ccfb65993f7ac75a33f6c902476 100644 (file)
@@ -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,