diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-07-17 15:38:34 (GMT) |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-18 21:30:10 (GMT) |
commit | dd9283e23f674281c02cd8cbf894cb3132a4e3a6 (patch) | |
tree | 10f68290d4cd6f8c954ab186e38b34cdb46e3331 /sound/soc/codecs/cs4349.h | |
parent | e40da86a37f64c73b810bc7a63d77c44dc61accb (diff) | |
download | linux-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.h')
-rw-r--r-- | sound/soc/codecs/cs4349.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/codecs/cs4349.h b/sound/soc/codecs/cs4349.h index 3884a89..7effa0a 100644 --- a/sound/soc/codecs/cs4349.h +++ b/sound/soc/codecs/cs4349.h @@ -36,9 +36,6 @@ struct cs4349_platform_data { #define CS4349_RMPFLT 0x07 /* Ramp and Filter Control */ #define CS4349_MISC 0x08 /* Power Down,Freeze Control,Pop Stop*/ -#define CS4349_FIRSTREG 0x01 -#define CS4349_LASTREG 0x08 -#define CS4349_NUMREGS (CS4349_LASTREG - CS4349_FIRSTREG + 1) #define CS4349_I2C_INCR 0x80 |