aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2015-01-05 04:18:28 -0500
committerMark Brown <broonie@kernel.org>2015-01-05 16:19:04 -0500
commit27ad02f3b6452e0b650835438eb10ba76cb7dfaf (patch)
treefaa0d94d4c892e1290cae488342cc4b3edb6068c /sound/soc
parentc0b363891816ea60d95a7dfcfc72f9955a7f1d32 (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 (snd_soc_register_codec() accepts pointer to const) and array of default register values const as well. 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')
-rw-r--r--sound/soc/codecs/wm8995.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8995.c b/sound/soc/codecs/wm8995.c
index c280f0a3a424..120228b6b596 100644
--- a/sound/soc/codecs/wm8995.c
+++ b/sound/soc/codecs/wm8995.c
@@ -44,7 +44,7 @@ static const char *wm8995_supply_names[WM8995_NUM_SUPPLIES] = {
44 "MICVDD" 44 "MICVDD"
45}; 45};
46 46
47static struct reg_default wm8995_reg_defaults[] = { 47static const struct reg_default wm8995_reg_defaults[] = {
48 { 0, 0x8995 }, 48 { 0, 0x8995 },
49 { 5, 0x0100 }, 49 { 5, 0x0100 },
50 { 16, 0x000b }, 50 { 16, 0x000b },
@@ -2190,7 +2190,7 @@ static struct snd_soc_dai_driver wm8995_dai[] = {
2190 } 2190 }
2191}; 2191};
2192 2192
2193static struct snd_soc_codec_driver soc_codec_dev_wm8995 = { 2193static const struct snd_soc_codec_driver soc_codec_dev_wm8995 = {
2194 .probe = wm8995_probe, 2194 .probe = wm8995_probe,
2195 .remove = wm8995_remove, 2195 .remove = wm8995_remove,
2196 .set_bias_level = wm8995_set_bias_level, 2196 .set_bias_level = wm8995_set_bias_level,
@@ -2204,7 +2204,7 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8995 = {
2204 .num_dapm_routes = ARRAY_SIZE(wm8995_intercon), 2204 .num_dapm_routes = ARRAY_SIZE(wm8995_intercon),
2205}; 2205};
2206 2206
2207static struct regmap_config wm8995_regmap = { 2207static const struct regmap_config wm8995_regmap = {
2208 .reg_bits = 16, 2208 .reg_bits = 16,
2209 .val_bits = 16, 2209 .val_bits = 16,
2210 2210