Skip to content

Commit 171dd51

Browse files
GustavoARSilvabroonie
authored andcommitted
ASoC: zx-tdm: 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 45d059a commit 171dd51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/zte/zx-tdm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static void zx_tdm_shutdown(struct snd_pcm_substream *substream,
309309
clk_disable_unprepare(zx_tdm->dai_wclk);
310310
}
311311

312-
static struct snd_soc_dai_ops zx_tdm_dai_ops = {
312+
static const struct snd_soc_dai_ops zx_tdm_dai_ops = {
313313
.trigger = zx_tdm_trigger,
314314
.hw_params = zx_tdm_hw_params,
315315
.set_fmt = zx_tdm_set_fmt,

0 commit comments

Comments
 (0)