From: Pascal PAILLET-LME 
Date: Tue, 19 Feb 2019 10:04:31 +0000 (+0000)
Subject: regulator: stpmic1: Use regulator mode definition from bindings
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b9058da8199dfdcdb6a83c60dd7d84e1c88e7d07;p=linux.git
regulator: stpmic1: Use regulator mode definition from bindings
Get the regulator mode definition from the bindings header.
Signed-off-by: pascal paillet 
Signed-off-by: Mark Brown 
---
diff --git a/drivers/regulator/stpmic1_regulator.c b/drivers/regulator/stpmic1_regulator.c
index d456fb5d4044a..c25f82fc28f48 100644
--- a/drivers/regulator/stpmic1_regulator.c
+++ b/drivers/regulator/stpmic1_regulator.c
@@ -12,6 +12,8 @@
 #include 
 #include 
 
+#include 
+
 /**
  * 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),