diff options
author | Dimitris Papastamos | 2010-09-10 19:14:56 +0200 |
---|---|---|
committer | Mark Brown | 2010-09-10 23:21:23 +0200 |
commit | e5eec34c68eab7af8fe10d070cb0c948f73a8464 (patch) | |
tree | bcfa506768bd8bbaa0302bb123234e7ba64a3f22 /sound/soc/codecs/wm9705.c | |
parent | ASoC: ad1980 - set reg_cache_default to ad1980_reg (diff) | |
download | kernel-qcow2-linux-e5eec34c68eab7af8fe10d070cb0c948f73a8464.tar.gz kernel-qcow2-linux-e5eec34c68eab7af8fe10d070cb0c948f73a8464.tar.xz kernel-qcow2-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/wm9705.c')
-rw-r--r-- | sound/soc/codecs/wm9705.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm9705.c b/sound/soc/codecs/wm9705.c index e4d8f5339c51..a144acda751c 100644 --- a/sound/soc/codecs/wm9705.c +++ b/sound/soc/codecs/wm9705.c @@ -385,7 +385,7 @@ static struct snd_soc_codec_driver soc_codec_dev_wm9705 = { .resume = wm9705_soc_resume, .read = ac97_read, .write = ac97_write, - .reg_cache_size = sizeof(wm9705_reg), + .reg_cache_size = ARRAY_SIZE(wm9705_reg), .reg_word_size = sizeof(u16), .reg_cache_step = 2, .reg_cache_default = wm9705_reg, |