ASoC: omap: constify snd_soc_ops structures

Declare snd_soc_ops structures as const as they are only stored
in the ops field of a snd_soc_dai_link structure. This field is
of type const, so snd_soc_ops structures having this property
can be made const too.

Cross compiled the .o files for arm architecture.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Reviewed-by: Sebastian Reichel <sre@kernel.org>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
这个提交包含在:
Bhumika Goyal
2017-03-18 19:34:11 +05:30
提交者 Mark Brown
父节点 8804e073a8
当前提交 2261cf1ce6
修改 7 个文件,包含 7 行新增7 行删除

查看文件

@@ -49,7 +49,7 @@ static int am3517evm_hw_params(struct snd_pcm_substream *substream,
return ret;
}
static struct snd_soc_ops am3517evm_ops = {
static const struct snd_soc_ops am3517evm_ops = {
.hw_params = am3517evm_hw_params,
};