]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: Constify ops and compr_ops fields of snd_soc_dai_link
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 10 Jan 2013 16:06:15 +0000 (17:06 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 13 Jan 2013 22:45:21 +0000 (07:45 +0900)
The core does not modify these fields, so they can be made const. This allows
drivers to declare their op tables as const.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc.h

index 769e27c774a3de382ec93650766621056dc78820..bedf3dabdbd3f7981f443a109a9ab83a9d79b405 100644 (file)
@@ -904,8 +904,8 @@ struct snd_soc_dai_link {
                        struct snd_pcm_hw_params *params);
 
        /* machine stream operations */
-       struct snd_soc_ops *ops;
-       struct snd_soc_compr_ops *compr_ops;
+       const struct snd_soc_ops *ops;
+       const struct snd_soc_compr_ops *compr_ops;
 };
 
 struct snd_soc_codec_conf {