diff options
author | Mark Brown <broonie@sirena.org.uk> | 2013-04-27 21:13:49 -0400 |
---|---|---|
committer | Mark Brown <broonie@sirena.org.uk> | 2013-04-27 21:13:49 -0400 |
commit | bcd5d1d978c70841d68c7a3725269df9d5a4abf8 (patch) | |
tree | b4aec3e704f177706294cc73b227da4b53805903 | |
parent | 32e40be1e27de1eee224c4e27dba963c11852b54 (diff) | |
parent | d1924519fe1dada0cfd9a228bf2ff1ea15840c84 (diff) |
Merge remote-tracking branch 'regulator/topic/twl' into v3.9-rc8
-rw-r--r-- | drivers/regulator/twl-regulator.c | 34 |
1 files changed, 3 insertions, 31 deletions
diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c index f705d25b437c..fb6e67d74ffb 100644 --- a/drivers/regulator/twl-regulator.c +++ b/drivers/regulator/twl-regulator.c | |||
@@ -441,12 +441,6 @@ static const u16 VSIM_VSEL_table[] = { | |||
441 | static const u16 VDAC_VSEL_table[] = { | 441 | static const u16 VDAC_VSEL_table[] = { |
442 | 1200, 1300, 1800, 1800, | 442 | 1200, 1300, 1800, 1800, |
443 | }; | 443 | }; |
444 | static const u16 VDD1_VSEL_table[] = { | ||
445 | 800, 1450, | ||
446 | }; | ||
447 | static const u16 VDD2_VSEL_table[] = { | ||
448 | 800, 1450, 1500, | ||
449 | }; | ||
450 | static const u16 VIO_VSEL_table[] = { | 444 | static const u16 VIO_VSEL_table[] = { |
451 | 1800, 1850, | 445 | 1800, 1850, |
452 | }; | 446 | }; |
@@ -615,18 +609,8 @@ static struct regulator_ops twl6030ldo_ops = { | |||
615 | 609 | ||
616 | /*----------------------------------------------------------------------*/ | 610 | /*----------------------------------------------------------------------*/ |
617 | 611 | ||
618 | /* | ||
619 | * Fixed voltage LDOs don't have a VSEL field to update. | ||
620 | */ | ||
621 | static int twlfixed_list_voltage(struct regulator_dev *rdev, unsigned index) | ||
622 | { | ||
623 | struct twlreg_info *info = rdev_get_drvdata(rdev); | ||
624 | |||
625 | return info->min_mV * 1000; | ||
626 | } | ||
627 | |||
628 | static struct regulator_ops twl4030fixed_ops = { | 612 | static struct regulator_ops twl4030fixed_ops = { |
629 | .list_voltage = twlfixed_list_voltage, | 613 | .list_voltage = regulator_list_voltage_linear, |
630 | 614 | ||
631 | .enable = twl4030reg_enable, | 615 | .enable = twl4030reg_enable, |
632 | .disable = twl4030reg_disable, | 616 | .disable = twl4030reg_disable, |
@@ -638,7 +622,7 @@ static struct regulator_ops twl4030fixed_ops = { | |||
638 | }; | 622 | }; |
639 | 623 | ||
640 | static struct regulator_ops twl6030fixed_ops = { | 624 | static struct regulator_ops twl6030fixed_ops = { |
641 | .list_voltage = twlfixed_list_voltage, | 625 | .list_voltage = regulator_list_voltage_linear, |
642 | 626 | ||
643 | .enable = twl6030reg_enable, | 627 | .enable = twl6030reg_enable, |
644 | .disable = twl6030reg_disable, | 628 | .disable = twl6030reg_disable, |
@@ -944,19 +928,7 @@ static const struct twlreg_info TWLFIXED_INFO_##label = { \ | |||
944 | .ops = &operations, \ | 928 | .ops = &operations, \ |
945 | .type = REGULATOR_VOLTAGE, \ | 929 | .type = REGULATOR_VOLTAGE, \ |
946 | .owner = THIS_MODULE, \ | 930 | .owner = THIS_MODULE, \ |
947 | .enable_time = turnon_delay, \ | 931 | .min_uV = mVolts * 1000, \ |
948 | }, \ | ||
949 | } | ||
950 | |||
951 | #define TWL6030_FIXED_RESOURCE(label, offset, turnon_delay) \ | ||
952 | static struct twlreg_info TWLRES_INFO_##label = { \ | ||
953 | .base = offset, \ | ||
954 | .desc = { \ | ||
955 | .name = #label, \ | ||
956 | .id = TWL6030_REG_##label, \ | ||
957 | .ops = &twl6030_fixed_resource, \ | ||
958 | .type = REGULATOR_VOLTAGE, \ | ||
959 | .owner = THIS_MODULE, \ | ||
960 | .enable_time = turnon_delay, \ | 932 | .enable_time = turnon_delay, \ |
961 | }, \ | 933 | }, \ |
962 | } | 934 | } |