diff options
author | Pascal PAILLET-LME <p.paillet@st.com> | 2019-02-19 10:04:31 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-02-19 11:01:59 +0000 |
commit | b9058da8199dfdcdb6a83c60dd7d84e1c88e7d07 (patch) | |
tree | c716edb27286e0a9e70a9aaca7ec2701e7e75f5d /drivers/regulator | |
parent | c407438f8795e6b403674b51fbdf5b3d66f811a4 (diff) | |
download | linux-b9058da8199dfdcdb6a83c60dd7d84e1c88e7d07.tar.bz2 |
regulator: stpmic1: Use regulator mode definition from bindings
Get the regulator mode definition from the bindings header.
Signed-off-by: pascal paillet <p.paillet@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/stpmic1_regulator.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/regulator/stpmic1_regulator.c b/drivers/regulator/stpmic1_regulator.c index d456fb5d4044..c25f82fc28f4 100644 --- a/drivers/regulator/stpmic1_regulator.c +++ b/drivers/regulator/stpmic1_regulator.c @@ -12,6 +12,8 @@ #include <linux/regulator/machine.h> #include <linux/regulator/of_regulator.h> +#include <dt-bindings/mfd/st,stpmic1.h> + /** * stpmic1 regulator description * @desc: regulator framework description @@ -68,9 +70,6 @@ enum { /* Enable time worst case is 5000mV/(2250uV/uS) */ #define PMIC_ENABLE_TIME_US 2200 -#define STPMIC1_BUCK_MODE_NORMAL 0 -#define STPMIC1_BUCK_MODE_LP BUCK_HPLP_ENABLE_MASK - static const struct regulator_linear_range buck1_ranges[] = { REGULATOR_LINEAR_RANGE(600000, 0, 30, 25000), REGULATOR_LINEAR_RANGE(1350000, 31, 63, 0), |