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

Commit 2b730cc3 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Mark Brown
Browse files

ASoC: alc5632: Constify struct regmap_config and snd_soc_codec_driver



The regmap_config struct may be const because it is not modified by the
driver and regmap_init() accepts pointer to const. Make struct
snd_soc_codec_driver const as well (snd_soc_register_codec() accepts
pointer to const).

Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 97bf6af1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1066,7 +1066,7 @@ static int alc5632_probe(struct snd_soc_codec *codec)
	return 0;
}

static struct snd_soc_codec_driver soc_codec_device_alc5632 = {
static const struct snd_soc_codec_driver soc_codec_device_alc5632 = {
	.probe = alc5632_probe,
	.resume = alc5632_resume,
	.set_bias_level = alc5632_set_bias_level,
@@ -1080,7 +1080,7 @@ static struct snd_soc_codec_driver soc_codec_device_alc5632 = {
	.num_dapm_routes = ARRAY_SIZE(alc5632_dapm_routes),
};

static struct regmap_config alc5632_regmap = {
static const struct regmap_config alc5632_regmap = {
	.reg_bits = 8,
	.val_bits = 16,