Merge remote-tracking branch 'regulator/topic/linear' into regulator-next
[deliverable/linux.git] / drivers / regulator / da903x.c
index c61d96e9d9255ef3b533492d0c376b3b249fc746..b431ae357fcd310e062bcb3fdb0ffd864b2f0603 100644 (file)
@@ -253,10 +253,8 @@ static int da9034_set_dvc_voltage_sel(struct regulator_dev *rdev,
 }
 
 static const struct regulator_linear_range da9034_ldo12_ranges[] = {
-       { .min_uV = 1700000, .max_uV = 2050000, .min_sel =  0, .max_sel = 7,
-         .uV_step =  50000 },
-       { .min_uV = 2700000, .max_uV = 3050000, .min_sel =  8, .max_sel = 15,
-         .uV_step =  50000 },
+       REGULATOR_LINEAR_RANGE(1700000, 0, 7, 50000),
+       REGULATOR_LINEAR_RANGE(2700000, 8, 15, 50000),
 };
 
 static struct regulator_ops da903x_regulator_ldo_ops = {
This page took 0.023478 seconds and 5 git commands to generate.