summaryrefslogtreecommitdiff
path: root/drivers/regulator/stpmic1_regulator.c
diff options
context:
space:
mode:
authorPascal PAILLET-LME <p.paillet@st.com>2019-02-19 13:04:34 +0300
committerMark Brown <broonie@kernel.org>2019-02-19 14:04:54 +0300
commit48593a99a1f6245000fa90606dd9ec5eb96b54a6 (patch)
treefb811c26cdb301940086e4eb8a2bedba6424f2e6 /drivers/regulator/stpmic1_regulator.c
parent4afa60d3a88aae3d052e0e8e1e62d6fc15a2be82 (diff)
downloadlinux-48593a99a1f6245000fa90606dd9ec5eb96b54a6.tar.xz
regulator: stpmic1: Change buck1 voltage range
Change buck1 voltage range to be conform with the data-sheet. Signed-off-by: pascal paillet <p.paillet@st.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/stpmic1_regulator.c')
-rw-r--r--drivers/regulator/stpmic1_regulator.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/regulator/stpmic1_regulator.c b/drivers/regulator/stpmic1_regulator.c
index 16ba0297f709..a1f88e996cae 100644
--- a/drivers/regulator/stpmic1_regulator.c
+++ b/drivers/regulator/stpmic1_regulator.c
@@ -75,9 +75,10 @@ enum {
#define STPMIC1_BUCK_MODE_NORMAL 0
#define STPMIC1_BUCK_MODE_LP BUCK_HPLP_ENABLE_MASK
-struct regulator_linear_range buck1_ranges[] = {
- REGULATOR_LINEAR_RANGE(600000, 0, 30, 25000),
- REGULATOR_LINEAR_RANGE(1350000, 31, 63, 0),
+static const struct regulator_linear_range buck1_ranges[] = {
+ REGULATOR_LINEAR_RANGE(725000, 0, 4, 0),
+ REGULATOR_LINEAR_RANGE(725000, 5, 36, 25000),
+ REGULATOR_LINEAR_RANGE(1500000, 37, 63, 0),
};
struct regulator_linear_range buck2_ranges[] = {