diff options
-rw-r--r-- | drivers/regulator/isl6271a-regulator.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/regulator/isl6271a-regulator.c b/drivers/regulator/isl6271a-regulator.c index 5caaf1f77541..78cdc90e0a7e 100644 --- a/drivers/regulator/isl6271a-regulator.c +++ b/drivers/regulator/isl6271a-regulator.c | |||
@@ -83,15 +83,10 @@ static int isl6271a_set_voltage(struct regulator_dev *dev, | |||
83 | return err; | 83 | return err; |
84 | } | 84 | } |
85 | 85 | ||
86 | static int isl6271a_list_voltage(struct regulator_dev *dev, unsigned selector) | ||
87 | { | ||
88 | return ISL6271A_VOLTAGE_MIN + (ISL6271A_VOLTAGE_STEP * selector); | ||
89 | } | ||
90 | |||
91 | static struct regulator_ops isl_core_ops = { | 86 | static struct regulator_ops isl_core_ops = { |
92 | .get_voltage = isl6271a_get_voltage, | 87 | .get_voltage = isl6271a_get_voltage, |
93 | .set_voltage = isl6271a_set_voltage, | 88 | .set_voltage = isl6271a_set_voltage, |
94 | .list_voltage = isl6271a_list_voltage, | 89 | .list_voltage = regulator_list_voltage_linear, |
95 | }; | 90 | }; |
96 | 91 | ||
97 | static int isl6271a_get_fixed_voltage(struct regulator_dev *dev) | 92 | static int isl6271a_get_fixed_voltage(struct regulator_dev *dev) |
@@ -119,6 +114,8 @@ static const struct regulator_desc isl_rd[] = { | |||
119 | .ops = &isl_core_ops, | 114 | .ops = &isl_core_ops, |
120 | .type = REGULATOR_VOLTAGE, | 115 | .type = REGULATOR_VOLTAGE, |
121 | .owner = THIS_MODULE, | 116 | .owner = THIS_MODULE, |
117 | .min_uV = ISL6271A_VOLTAGE_MIN, | ||
118 | .uV_step = ISL6271A_VOLTAGE_STEP, | ||
122 | }, { | 119 | }, { |
123 | .name = "LDO1", | 120 | .name = "LDO1", |
124 | .id = 1, | 121 | .id = 1, |