ASoC: zx-i2s: constify snd_soc_dai_ops structure
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 13 Jul 2017 05:22:09 +0000 (00:22 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jul 2017 15:18:15 +0000 (16:18 +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/zte/zx-i2s.c

index 8bbad1d..9a05659 100644 (file)
@@ -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,