aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-10-12 17:24:25 +0800
committerMark Brown <broonie@linaro.org>2013-10-14 15:01:10 +0100
commitacc8da7642c8d8dc408d9713de61273950c20714 (patch)
tree13d0ca61e7bbd381f8ad3598c60c445686d69eb5
parent61e6cfa80de5760bbe406f4e815b7739205754d2 (diff)
downloadkernel_goldelico_gta04-acc8da7642c8d8dc408d9713de61273950c20714.zip
kernel_goldelico_gta04-acc8da7642c8d8dc408d9713de61273950c20714.tar.gz
kernel_goldelico_gta04-acc8da7642c8d8dc408d9713de61273950c20714.tar.bz2
ASoC: pcm1681: Fix max_register setting
According to the datasheet, the max_register is 13h. ARRAY_SIZE(pcm1681_reg_defaults) + 1 is 18 which is wrong. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--sound/soc/codecs/pcm1681.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/pcm1681.c b/sound/soc/codecs/pcm1681.c
index 651ce09..c91eba5 100644
--- a/sound/soc/codecs/pcm1681.c
+++ b/sound/soc/codecs/pcm1681.c
@@ -270,7 +270,7 @@ MODULE_DEVICE_TABLE(of, pcm1681_dt_ids);
static const struct regmap_config pcm1681_regmap = {
.reg_bits = 8,
.val_bits = 8,
- .max_register = ARRAY_SIZE(pcm1681_reg_defaults) + 1,
+ .max_register = 0x13,
.reg_defaults = pcm1681_reg_defaults,
.num_reg_defaults = ARRAY_SIZE(pcm1681_reg_defaults),
.writeable_reg = pcm1681_writeable_reg,