Skip to content

Commit 5fc9da6

Browse files
Lee Jonesbroonie
authored andcommitted
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>
1 parent a4d6846 commit 5fc9da6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎drivers/regulator/ab8500.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ static int ab8500_regulator_set_voltage_time_sel(struct regulator_dev *rdev,
654654
{
655655
struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
656656

657-
return info->delay;
657+
return info->desc.enable_time;
658658
}
659659

660660
static struct regulator_ops ab8500_regulator_volt_mode_ops = {
@@ -1108,7 +1108,6 @@ static struct ab8500_regulator_info
11081108
.volt_table = fixed_2000000_voltage,
11091109
.enable_time = 10000,
11101110
},
1111-
.delay = 10000,
11121111
.load_lp_uA = 1000,
11131112
.update_bank = 0x03,
11141113
.update_reg = 0x80,
@@ -1374,7 +1373,6 @@ static struct ab8500_regulator_info
13741373
.volt_table = fixed_2000000_voltage,
13751374
.enable_time = 10000,
13761375
},
1377-
.delay = 10000,
13781376
.load_lp_uA = 1000,
13791377
.update_bank = 0x03,
13801378
.update_reg = 0x80,
@@ -1672,7 +1670,6 @@ static struct ab8500_regulator_info
16721670
.n_voltages = 1,
16731671
.enable_time = 10000,
16741672
},
1675-
.delay = 10000,
16761673
.load_lp_uA = 1000,
16771674
.update_bank = 0x03,
16781675
.update_reg = 0x80,

0 commit comments

Comments
 (0)