regulator: stpmic1: Use regulator mode definition from bindings
authorPascal PAILLET-LME <p.paillet@st.com>
Tue, 19 Feb 2019 10:04:31 +0000 (10:04 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 19 Feb 2019 11:01:59 +0000 (11:01 +0000)
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>
drivers/regulator/stpmic1_regulator.c

index d456fb5d4044a36815ff071798dad1201dd4b936..c25f82fc28f484e65646d905b740824d3e5b1e08 100644 (file)
@@ -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),