]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/regulator/wm8350-regulator.c
Merge remote-tracking branch 'regulator/topic/linear' into regulator-next
[karo-tx-linux.git] / drivers / regulator / wm8350-regulator.c
index 017e8695ca71e2be945a36bd8685f2671a339e27..de7b9c73e3fa09f3b14db1c5d8949ca99a37c352 100644 (file)
@@ -543,10 +543,8 @@ static int wm8350_dcdc_set_suspend_mode(struct regulator_dev *rdev,
 }
 
 static const struct regulator_linear_range wm8350_ldo_ranges[] = {
-       { .min_uV =  900000, .max_uV = 1650000, .min_sel =  0, .max_sel = 15,
-         .uV_step =  50000 },
-       { .min_uV = 1800000, .max_uV = 3300000, .min_sel = 16, .max_sel = 31,
-         .uV_step = 100000 },
+       REGULATOR_LINEAR_RANGE(900000, 0, 15, 50000),
+       REGULATOR_LINEAR_RANGE(1800000, 16, 31, 100000),
 };
 
 static int wm8350_ldo_set_suspend_voltage(struct regulator_dev *rdev, int uV)