Skip to content

Commit 45d059a

Browse files
GustavoARSilvabroonie
authored andcommitted
ASoC: zx-i2s: 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 5771a8c commit 45d059a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/zte/zx-i2s.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ static void zx_i2s_shutdown(struct snd_pcm_substream *substream,
357357
clk_disable_unprepare(zx_i2s->dai_pclk);
358358
}
359359

360-
static struct snd_soc_dai_ops zx_i2s_dai_ops = {
360+
static const struct snd_soc_dai_ops zx_i2s_dai_ops = {
361361
.trigger = zx_i2s_trigger,
362362
.hw_params = zx_i2s_hw_params,
363363
.set_fmt = zx_i2s_set_fmt,

0 commit comments

Comments
 (0)