diff options
author | Axel Lin <axel.lin@ingics.com> | 2021-05-23 15:10:44 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-23 14:42:47 +0200 |
commit | 0609c36696e7668d265c29ee88bad079201f700f (patch) | |
tree | 62ff724e141797223e7dda2870d00333ecd91384 | |
parent | 0ea923519a3fdd81ce9c69ddcbd60809657deb88 (diff) | |
download | kernel_replicant_linux-0609c36696e7668d265c29ee88bad079201f700f.tar.gz kernel_replicant_linux-0609c36696e7668d265c29ee88bad079201f700f.tar.bz2 kernel_replicant_linux-0609c36696e7668d265c29ee88bad079201f700f.zip |
regulator: bd70528: Fix off-by-one for buck123 .n_voltages setting
[ Upstream commit 0514582a1a5b4ac1a3fd64792826d392d7ae9ddc ]
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>
-rw-r--r-- | include/linux/mfd/rohm-bd70528.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/mfd/rohm-bd70528.h b/include/linux/mfd/rohm-bd70528.h index a57af878fd0c..4a5966475a35 100644 --- a/include/linux/mfd/rohm-bd70528.h +++ b/include/linux/mfd/rohm-bd70528.h @@ -26,9 +26,7 @@ struct bd70528_data { struct mutex rtc_timer_lock; }; -#define BD70528_BUCK_VOLTS 17 -#define BD70528_BUCK_VOLTS 17 -#define BD70528_BUCK_VOLTS 17 +#define BD70528_BUCK_VOLTS 0x10 #define BD70528_LDO_VOLTS 0x20 #define BD70528_REG_BUCK1_EN 0x0F |