aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-04-02 08:24:17 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-04-03 13:40:27 -0400
commit5fc9da6d372cc2a75beef7c65b7559fcd1a2716e (patch)
tree904e6822f780f9fa6e6323e64701f4b5a5527066
parenta4d68468ca6b24786ba0541bca27871f47e135b1 (diff)
regulator: ab8500: Remove the need for a 'delay' property
The regulator framework now has provisions to read a regulator's start-up time via the 'enable_time' attribute. So let's remove all 'enable_time'/'delay' duplication and just stick with 'enable_time' from now on. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--drivers/regulator/ab8500.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c
index 8a9cd45eac02..7892a516d074 100644
--- a/drivers/regulator/ab8500.c
+++ b/drivers/regulator/ab8500.c
@@ -654,7 +654,7 @@ static int ab8500_regulator_set_voltage_time_sel(struct regulator_dev *rdev,
654{ 654{
655 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev); 655 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
656 656
657 return info->delay; 657 return info->desc.enable_time;
658} 658}
659 659
660static struct regulator_ops ab8500_regulator_volt_mode_ops = { 660static struct regulator_ops ab8500_regulator_volt_mode_ops = {
@@ -1108,7 +1108,6 @@ static struct ab8500_regulator_info
1108 .volt_table = fixed_2000000_voltage, 1108 .volt_table = fixed_2000000_voltage,
1109 .enable_time = 10000, 1109 .enable_time = 10000,
1110 }, 1110 },
1111 .delay = 10000,
1112 .load_lp_uA = 1000, 1111 .load_lp_uA = 1000,
1113 .update_bank = 0x03, 1112 .update_bank = 0x03,
1114 .update_reg = 0x80, 1113 .update_reg = 0x80,
@@ -1374,7 +1373,6 @@ static struct ab8500_regulator_info
1374 .volt_table = fixed_2000000_voltage, 1373 .volt_table = fixed_2000000_voltage,
1375 .enable_time = 10000, 1374 .enable_time = 10000,
1376 }, 1375 },
1377 .delay = 10000,
1378 .load_lp_uA = 1000, 1376 .load_lp_uA = 1000,
1379 .update_bank = 0x03, 1377 .update_bank = 0x03,
1380 .update_reg = 0x80, 1378 .update_reg = 0x80,
@@ -1672,7 +1670,6 @@ static struct ab8500_regulator_info
1672 .n_voltages = 1, 1670 .n_voltages = 1,
1673 .enable_time = 10000, 1671 .enable_time = 10000,
1674 }, 1672 },
1675 .delay = 10000,
1676 .load_lp_uA = 1000, 1673 .load_lp_uA = 1000,
1677 .update_bank = 0x03, 1674 .update_bank = 0x03,
1678 .update_reg = 0x80, 1675 .update_reg = 0x80,