diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2011-05-05 10:59:14 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-05-08 09:42:21 -0400 |
commit | 8fc63fe9412634c72676db42649f357eaac04566 (patch) | |
tree | b255998ce746fab5a2dc4f165b22c0530026dc5b /sound/soc/codecs | |
parent | 36c90ab33feabbd63da775bd92ad356e5bd5cf56 (diff) |
ASoC: SSM2602: Fix reg_cache_size
reg_cache_size is supposed to be the number of elements in the register cache,
not the size in bytes.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/ssm2602.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c index 946797dbb0c5..b04d28039c16 100644 --- a/sound/soc/codecs/ssm2602.c +++ b/sound/soc/codecs/ssm2602.c | |||
@@ -602,7 +602,7 @@ static struct snd_soc_codec_driver soc_codec_dev_ssm2602 = { | |||
602 | .read = ssm2602_read_reg_cache, | 602 | .read = ssm2602_read_reg_cache, |
603 | .write = ssm2602_write, | 603 | .write = ssm2602_write, |
604 | .set_bias_level = ssm2602_set_bias_level, | 604 | .set_bias_level = ssm2602_set_bias_level, |
605 | .reg_cache_size = sizeof(ssm2602_reg), | 605 | .reg_cache_size = ARRAY_SIZE(ssm2602_reg), |
606 | .reg_word_size = sizeof(u16), | 606 | .reg_word_size = sizeof(u16), |
607 | .reg_cache_default = ssm2602_reg, | 607 | .reg_cache_default = ssm2602_reg, |
608 | }; | 608 | }; |