summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/cs4349.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-07-17 18:38:34 +0300
committerMark Brown <broonie@kernel.org>2015-07-19 00:30:10 +0300
commitdd9283e23f674281c02cd8cbf894cb3132a4e3a6 (patch)
tree10f68290d4cd6f8c954ab186e38b34cdb46e3331 /sound/soc/codecs/cs4349.c
parente40da86a37f64c73b810bc7a63d77c44dc61accb (diff)
downloadlinux-dd9283e23f674281c02cd8cbf894cb3132a4e3a6.tar.xz
ASoC: cs4349: Fix max_register setting for cs4349_regmap
The max_register should be the maximum valid register index rather than number of registers. Also remove unused defines. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Tim Howe <tim.howe@cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs4349.c')
-rw-r--r--sound/soc/codecs/cs4349.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs4349.c b/sound/soc/codecs/cs4349.c
index a8df8a749607..9273b06e918b 100644
--- a/sound/soc/codecs/cs4349.c
+++ b/sound/soc/codecs/cs4349.c
@@ -268,7 +268,7 @@ static struct regmap_config cs4349_regmap = {
.reg_bits = 8,
.val_bits = 8,
- .max_register = CS4349_NUMREGS,
+ .max_register = CS4349_MISC,
.reg_defaults = cs4349_reg_defaults,
.num_reg_defaults = ARRAY_SIZE(cs4349_reg_defaults),
.readable_reg = cs4349_readable_register,