Skip to content

Commit 4d2c7e0

Browse files
GustavoARSilvabroonie
authored andcommitted
ASoC: zte: spdif: 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 <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 171dd51 commit 4d2c7e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/zte/zx-spdif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ static void zx_spdif_shutdown(struct snd_pcm_substream *substream,
264264
(SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S18_3LE \
265265
| SNDRV_PCM_FMTBIT_S20_3LE | SNDRV_PCM_FMTBIT_S24_LE)
266266

267-
static struct snd_soc_dai_ops zx_spdif_dai_ops = {
267+
static const struct snd_soc_dai_ops zx_spdif_dai_ops = {
268268
.trigger = zx_spdif_trigger,
269269
.startup = zx_spdif_startup,
270270
.shutdown = zx_spdif_shutdown,

0 commit comments

Comments
 (0)