Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95f1044f authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

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



The latest valid register is TAS2552_VBAT_DATA.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarDan <Murphy&lt;dmurphy@ti.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent bc0195aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)