Skip to content

Commit

Permalink
ASoC: tas2552: Fix off-by-one for max_register setting
Browse files Browse the repository at this point in the history
The latest valid register is TAS2552_VBAT_DATA.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Dan Murphy<dmurphy@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Axel Lin authored and Mark Brown committed Jul 23, 2015
1 parent bc0195a commit 95f1044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/tas2552.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#define TAS2552_BOOST_APT_CTRL 0x14
#define TAS2552_VER_NUM 0x16
#define TAS2552_VBAT_DATA 0x19
#define TAS2552_MAX_REG 0x20
#define TAS2552_MAX_REG TAS2552_VBAT_DATA

/* CFG1 Register Masks */
#define TAS2552_DEV_RESET (1 << 0)
Expand Down

0 comments on commit 95f1044

Please sign in to comment.