Commit 2261cf1c authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Mark Brown
Browse files

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Reviewed-by: default avatarSebastian Reichel <sre@kernel.org>
Acked-by: default avatarJarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8804e073
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
};

+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ static int n810_hw_params(struct snd_pcm_substream *substream,
	return err;
}

static struct snd_soc_ops n810_ops = {
static const struct snd_soc_ops n810_ops = {
	.startup = n810_startup,
	.hw_params = n810_hw_params,
	.shutdown = n810_shutdown,
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ static int omap_abe_hw_params(struct snd_pcm_substream *substream,
	return ret;
}

static struct snd_soc_ops omap_abe_ops = {
static const struct snd_soc_ops omap_abe_ops = {
	.hw_params = omap_abe_hw_params,
};

+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ static int omap_twl4030_hw_params(struct snd_pcm_substream *substream,
	return snd_soc_runtime_set_dai_fmt(rtd, fmt);
}

static struct snd_soc_ops omap_twl4030_ops = {
static const struct snd_soc_ops omap_twl4030_ops = {
	.hw_params = omap_twl4030_hw_params,
};

+1 −1
Original line number Diff line number Diff line
@@ -184,7 +184,7 @@ static int omap3pandora_in_init(struct snd_soc_pcm_runtime *rtd)
	return 0;
}

static struct snd_soc_ops omap3pandora_ops = {
static const struct snd_soc_ops omap3pandora_ops = {
	.hw_params = omap3pandora_hw_params,
};

Loading