Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: tas2552: Fix off-by-one for max_register setting

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>

authored by

Axel Lin and committed by
Mark Brown
95f1044f bc0195aa

+1 -1
+1 -1
sound/soc/codecs/tas2552.h
··· 42 42 #define TAS2552_BOOST_APT_CTRL 0x14 43 43 #define TAS2552_VER_NUM 0x16 44 44 #define TAS2552_VBAT_DATA 0x19 45 - #define TAS2552_MAX_REG 0x20 45 + #define TAS2552_MAX_REG TAS2552_VBAT_DATA 46 46 47 47 /* CFG1 Register Masks */ 48 48 #define TAS2552_DEV_RESET (1 << 0)