Skip to content

Commit 0609c36

Browse files
AxelLingregkh
authored andcommitted
regulator: bd70528: Fix off-by-one for buck123 .n_voltages setting
[ Upstream commit 0514582 ] The valid selectors for bd70528 bucks are 0 ~ 0xf, so the .n_voltages should be 16 (0x10). Use 0x10 to make it consistent with BD70528_LDO_VOLTS. Also remove redundant defines for BD70528_BUCK_VOLTS. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Link: https://lore.kernel.org/r/20210523071045.2168904-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 0ea9235 commit 0609c36

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎include/linux/mfd/rohm-bd70528.h‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ struct bd70528_data {
2626
struct mutex rtc_timer_lock;
2727
};
2828

29-
#define BD70528_BUCK_VOLTS 17
30-
#define BD70528_BUCK_VOLTS 17
31-
#define BD70528_BUCK_VOLTS 17
29+
#define BD70528_BUCK_VOLTS 0x10
3230
#define BD70528_LDO_VOLTS 0x20
3331

3432
#define BD70528_REG_BUCK1_EN 0x0F

0 commit comments

Comments
 (0)