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

Commit 2af23639 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Mark Brown
Browse files

ASoC: samsung: make snd_soc_ops const



Make these const as they are only stored in the ops field of a
snd_soc_dai_link structure, which is const.
Done using Coccinelle.

Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7b814a7d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ static int jive_hw_params(struct snd_pcm_substream *substream,
	return 0;
}

static struct snd_soc_ops jive_ops = {
static const struct snd_soc_ops jive_ops = {
	.hw_params	= jive_hw_params,
};

+1 −1
Original line number Diff line number Diff line
@@ -211,7 +211,7 @@ static int simtec_call_startup(struct s3c24xx_audio_simtec_pdata *pd)
	return 0;
}

static struct snd_soc_ops simtec_snd_ops = {
static const struct snd_soc_ops simtec_snd_ops = {
	.hw_params	= simtec_hw_params,
};

+1 −1
Original line number Diff line number Diff line
@@ -199,7 +199,7 @@ static int s3c24xx_uda134x_hw_params(struct snd_pcm_substream *substream,
	return 0;
}

static struct snd_soc_ops s3c24xx_uda134x_ops = {
static const struct snd_soc_ops s3c24xx_uda134x_ops = {
	.startup = s3c24xx_uda134x_startup,
	.shutdown = s3c24xx_uda134x_shutdown,
	.hw_params = s3c24xx_uda134x_hw_params,
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ static int smdk_hw_params(struct snd_pcm_substream *substream,
	return ret;
}

static struct snd_soc_ops smdk_spdif_ops = {
static const struct snd_soc_ops smdk_spdif_ops = {
	.hw_params = smdk_hw_params,
};