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>
这个提交包含在:
@@ -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,
|
||||
};
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户