diff options
| author | Axel Lin <axel.lin@gmail.com> | 2012-08-07 10:21:23 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-28 14:00:25 -0400 |
| commit | 7fee2afb5354f4391cbabba5f377c18d1fe50a83 (patch) | |
| tree | 172864fd5300830bc626f6e2dfdab81019f57a93 /drivers/regulator | |
| parent | 4001376ef2f6f4ec0f362566d95937434afa07ba (diff) | |
regulator: ab8500: Set enable enable_time in regulator_desc
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator')
| -rw-r--r-- | drivers/regulator/ab8500.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c index 10f2f4d4d190..8807166eab7f 100644 --- a/drivers/regulator/ab8500.c +++ b/drivers/regulator/ab8500.c | |||
| @@ -238,13 +238,6 @@ static int ab8500_regulator_set_voltage_sel(struct regulator_dev *rdev, | |||
| 238 | return ret; | 238 | return ret; |
| 239 | } | 239 | } |
| 240 | 240 | ||
| 241 | static int ab8500_regulator_enable_time(struct regulator_dev *rdev) | ||
| 242 | { | ||
| 243 | struct ab8500_regulator_info *info = rdev_get_drvdata(rdev); | ||
| 244 | |||
| 245 | return info->delay; | ||
| 246 | } | ||
| 247 | |||
| 248 | static int ab8500_regulator_set_voltage_time_sel(struct regulator_dev *rdev, | 241 | static int ab8500_regulator_set_voltage_time_sel(struct regulator_dev *rdev, |
| 249 | unsigned int old_sel, | 242 | unsigned int old_sel, |
| 250 | unsigned int new_sel) | 243 | unsigned int new_sel) |
| @@ -261,7 +254,6 @@ static struct regulator_ops ab8500_regulator_ops = { | |||
| 261 | .get_voltage_sel = ab8500_regulator_get_voltage_sel, | 254 | .get_voltage_sel = ab8500_regulator_get_voltage_sel, |
| 262 | .set_voltage_sel = ab8500_regulator_set_voltage_sel, | 255 | .set_voltage_sel = ab8500_regulator_set_voltage_sel, |
| 263 | .list_voltage = regulator_list_voltage_table, | 256 | .list_voltage = regulator_list_voltage_table, |
| 264 | .enable_time = ab8500_regulator_enable_time, | ||
| 265 | .set_voltage_time_sel = ab8500_regulator_set_voltage_time_sel, | 257 | .set_voltage_time_sel = ab8500_regulator_set_voltage_time_sel, |
| 266 | }; | 258 | }; |
| 267 | 259 | ||
| @@ -276,7 +268,6 @@ static struct regulator_ops ab8500_regulator_fixed_ops = { | |||
| 276 | .is_enabled = ab8500_regulator_is_enabled, | 268 | .is_enabled = ab8500_regulator_is_enabled, |
| 277 | .get_voltage = ab8500_fixed_get_voltage, | 269 | .get_voltage = ab8500_fixed_get_voltage, |
| 278 | .list_voltage = regulator_list_voltage_linear, | 270 | .list_voltage = regulator_list_voltage_linear, |
| 279 | .enable_time = ab8500_regulator_enable_time, | ||
| 280 | }; | 271 | }; |
| 281 | 272 | ||
| 282 | static struct ab8500_regulator_info | 273 | static struct ab8500_regulator_info |
| @@ -374,6 +365,7 @@ static struct ab8500_regulator_info | |||
| 374 | .owner = THIS_MODULE, | 365 | .owner = THIS_MODULE, |
| 375 | .n_voltages = 1, | 366 | .n_voltages = 1, |
| 376 | .min_uV = 2000000, | 367 | .min_uV = 2000000, |
| 368 | .enable_time = 10000, | ||
| 377 | }, | 369 | }, |
| 378 | .delay = 10000, | 370 | .delay = 10000, |
| 379 | .update_bank = 0x03, | 371 | .update_bank = 0x03, |
