diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-01-05 04:18:26 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-05 16:17:57 -0500 |
commit | c0b363891816ea60d95a7dfcfc72f9955a7f1d32 (patch) | |
tree | 5d535ad5ffd130918b4cbe6a8531947c737d1c77 /sound/soc/codecs/wm8804.c | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) |
ASoC: wm8804: 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>
Acked-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm8804.c')
-rw-r--r-- | sound/soc/codecs/wm8804.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8804.c b/sound/soc/codecs/wm8804.c index 1315f7642503..b2b0e68f707e 100644 --- a/sound/soc/codecs/wm8804.c +++ b/sound/soc/codecs/wm8804.c | |||
@@ -648,7 +648,7 @@ static struct snd_soc_dai_driver wm8804_dai = { | |||
648 | .symmetric_rates = 1 | 648 | .symmetric_rates = 1 |
649 | }; | 649 | }; |
650 | 650 | ||
651 | static struct snd_soc_codec_driver soc_codec_dev_wm8804 = { | 651 | static const struct snd_soc_codec_driver soc_codec_dev_wm8804 = { |
652 | .probe = wm8804_probe, | 652 | .probe = wm8804_probe, |
653 | .remove = wm8804_remove, | 653 | .remove = wm8804_remove, |
654 | .set_bias_level = wm8804_set_bias_level, | 654 | .set_bias_level = wm8804_set_bias_level, |
@@ -664,7 +664,7 @@ static const struct of_device_id wm8804_of_match[] = { | |||
664 | }; | 664 | }; |
665 | MODULE_DEVICE_TABLE(of, wm8804_of_match); | 665 | MODULE_DEVICE_TABLE(of, wm8804_of_match); |
666 | 666 | ||
667 | static struct regmap_config wm8804_regmap_config = { | 667 | static const struct regmap_config wm8804_regmap_config = { |
668 | .reg_bits = 8, | 668 | .reg_bits = 8, |
669 | .val_bits = 8, | 669 | .val_bits = 8, |
670 | 670 | ||