diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-01-05 04:18:21 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-05 16:15:44 -0500 |
commit | 2b730cc38d3ca592b4f9f71989e7f0c79b37b3b3 (patch) | |
tree | 090255337e6d88a2c9bb61af914253d44b1ac437 | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) |
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: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/alc5632.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/alc5632.c b/sound/soc/codecs/alc5632.c index d1fdbc266631..07630260e1ba 100644 --- a/sound/soc/codecs/alc5632.c +++ b/sound/soc/codecs/alc5632.c | |||
@@ -1066,7 +1066,7 @@ static int alc5632_probe(struct snd_soc_codec *codec) | |||
1066 | return 0; | 1066 | return 0; |
1067 | } | 1067 | } |
1068 | 1068 | ||
1069 | static struct snd_soc_codec_driver soc_codec_device_alc5632 = { | 1069 | static const struct snd_soc_codec_driver soc_codec_device_alc5632 = { |
1070 | .probe = alc5632_probe, | 1070 | .probe = alc5632_probe, |
1071 | .resume = alc5632_resume, | 1071 | .resume = alc5632_resume, |
1072 | .set_bias_level = alc5632_set_bias_level, | 1072 | .set_bias_level = alc5632_set_bias_level, |
@@ -1080,7 +1080,7 @@ static struct snd_soc_codec_driver soc_codec_device_alc5632 = { | |||
1080 | .num_dapm_routes = ARRAY_SIZE(alc5632_dapm_routes), | 1080 | .num_dapm_routes = ARRAY_SIZE(alc5632_dapm_routes), |
1081 | }; | 1081 | }; |
1082 | 1082 | ||
1083 | static struct regmap_config alc5632_regmap = { | 1083 | static const struct regmap_config alc5632_regmap = { |
1084 | .reg_bits = 8, | 1084 | .reg_bits = 8, |
1085 | .val_bits = 16, | 1085 | .val_bits = 16, |
1086 | 1086 | ||