]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/regulator/wm8400-regulator.c
Merge remote-tracking branch 'regulator/for-next'
[karo-tx-linux.git] / drivers / regulator / wm8400-regulator.c
index 870b52f709bcf411244adeb77ef241049cdf117c..82d82900085199f738d1555059d396315da6520a 100644 (file)
 #include <linux/mfd/wm8400-private.h>
 
 static const struct regulator_linear_range wm8400_ldo_ranges[] = {
-       { .min_uV =  900000, .max_uV = 1600000, .min_sel = 0, .max_sel = 14,
-         .uV_step =  50000 },
-       { .min_uV = 1700000, .max_uV = 3300000, .min_sel = 15, .max_sel = 31,
-         .uV_step = 100000 },
+       REGULATOR_LINEAR_RANGE(900000, 0, 14, 50000),
+       REGULATOR_LINEAR_RANGE(1700000, 15, 31, 100000),
 };
 
 static struct regulator_ops wm8400_ldo_ops = {