summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8580.c
diff options
context:
space:
mode:
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>2010-09-10 18:14:56 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-09-10 22:21:23 +0100
commite5eec34c68eab7af8fe10d070cb0c948f73a8464 (patch)
treebcfa506768bd8bbaa0302bb123234e7ba64a3f22 /sound/soc/codecs/wm8580.c
parentc7bad06f1305be2cfa68ad58dc3391261162db4e (diff)
downloadtalos-obmc-linux-e5eec34c68eab7af8fe10d070cb0c948f73a8464.tar.gz
talos-obmc-linux-e5eec34c68eab7af8fe10d070cb0c948f73a8464.zip
ASoC: Fix incorrect register cache size configuration
The reg_cache_size is the number of elements in the register cache, not the size of the cache itself. This is not a problem if the size of each element of the cache is 1 byte but it matters in any other case. Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8580.c')
-rw-r--r--sound/soc/codecs/wm8580.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8580.c b/sound/soc/codecs/wm8580.c
index 910c62a3f594..ad5987e6c9ca 100644
--- a/sound/soc/codecs/wm8580.c
+++ b/sound/soc/codecs/wm8580.c
@@ -907,7 +907,7 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8580 = {
.probe = wm8580_probe,
.remove = wm8580_remove,
.set_bias_level = wm8580_set_bias_level,
- .reg_cache_size = sizeof(wm8580_reg),
+ .reg_cache_size = ARRAY_SIZE(wm8580_reg),
.reg_word_size = sizeof(u16),
.reg_cache_default = &wm8580_reg,
};
OpenPOWER on IntegriCloud