Skip to content

Commit 5144468

Browse files
ArvindYadavCsbroonie
authored andcommitted
ASoC: txx9: constify snd_pcm_ops structures
snd_pcm_ops are not supposed to change at runtime. All functions working with snd_pcm_ops provided by <sound/soc.h> work with const snd_pcm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 42271d9 commit 5144468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/txx9/txx9aclc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ static int txx9aclc_pcm_close(struct snd_pcm_substream *substream)
271271
return 0;
272272
}
273273

274-
static struct snd_pcm_ops txx9aclc_pcm_ops = {
274+
static const struct snd_pcm_ops txx9aclc_pcm_ops = {
275275
.open = txx9aclc_pcm_open,
276276
.close = txx9aclc_pcm_close,
277277
.ioctl = snd_pcm_lib_ioctl,

0 commit comments

Comments
 (0)