Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f03f55b authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Mark Brown
Browse files

ASoC: Constify the 'ops' field of snd_soc_platform_driver



The ASoC core does not modify a platform driver's ops structure. Making it const
allows ASoC platform drivers to declare their snd_pcm_ops struct as const.

Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent d79e57db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -801,7 +801,7 @@ struct snd_soc_platform_driver {
		struct snd_soc_dai *);

	/* platform stream pcm ops */
	struct snd_pcm_ops *ops;
	const struct snd_pcm_ops *ops;

	/* platform stream compress ops */
	struct snd_compr_ops *compr_ops;