diff options
| -rw-r--r-- | drivers/regulator/tps80031-regulator.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/regulator/tps80031-regulator.c b/drivers/regulator/tps80031-regulator.c index aaab3d73d7bd..ce480499177e 100644 --- a/drivers/regulator/tps80031-regulator.c +++ b/drivers/regulator/tps80031-regulator.c | |||
| @@ -407,15 +407,18 @@ static struct regulator_ops tps80031_ldo_ops = { | |||
| 407 | }; | 407 | }; |
| 408 | 408 | ||
| 409 | static struct regulator_ops tps80031_vbus_sw_ops = { | 409 | static struct regulator_ops tps80031_vbus_sw_ops = { |
| 410 | .list_voltage = regulator_list_voltage_linear, | ||
| 410 | .enable = tps80031_vbus_enable, | 411 | .enable = tps80031_vbus_enable, |
| 411 | .disable = tps80031_vbus_disable, | 412 | .disable = tps80031_vbus_disable, |
| 412 | .is_enabled = tps80031_vbus_is_enabled, | 413 | .is_enabled = tps80031_vbus_is_enabled, |
| 413 | }; | 414 | }; |
| 414 | 415 | ||
| 415 | static struct regulator_ops tps80031_vbus_hw_ops = { | 416 | static struct regulator_ops tps80031_vbus_hw_ops = { |
| 417 | .list_voltage = regulator_list_voltage_linear, | ||
| 416 | }; | 418 | }; |
| 417 | 419 | ||
| 418 | static struct regulator_ops tps80031_ext_reg_ops = { | 420 | static struct regulator_ops tps80031_ext_reg_ops = { |
| 421 | .list_voltage = regulator_list_voltage_linear, | ||
| 419 | .enable = tps80031_reg_enable, | 422 | .enable = tps80031_reg_enable, |
| 420 | .disable = tps80031_reg_disable, | 423 | .disable = tps80031_reg_disable, |
| 421 | .is_enabled = tps80031_reg_is_enabled, | 424 | .is_enabled = tps80031_reg_is_enabled, |
| @@ -477,7 +480,8 @@ static struct regulator_ops tps80031_ext_reg_ops = { | |||
| 477 | .desc = { \ | 480 | .desc = { \ |
| 478 | .name = "tps80031_"#_id, \ | 481 | .name = "tps80031_"#_id, \ |
| 479 | .id = TPS80031_REGULATOR_##_id, \ | 482 | .id = TPS80031_REGULATOR_##_id, \ |
| 480 | .n_voltages = 2, \ | 483 | .min_uV = max_mV * 1000, \ |
| 484 | .n_voltages = 1, \ | ||
| 481 | .ops = &_ops, \ | 485 | .ops = &_ops, \ |
| 482 | .type = REGULATOR_VOLTAGE, \ | 486 | .type = REGULATOR_VOLTAGE, \ |
| 483 | .owner = THIS_MODULE, \ | 487 | .owner = THIS_MODULE, \ |
