diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-04-02 08:24:06 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-02 18:01:41 -0400 |
commit | 0fe17e20a6af5cbe4d0a7739300f7b818c79620f (patch) | |
tree | c4b80f07eaa76441887c68d1b7f9f249fd0e6ff3 | |
parent | 35e1d5f6344ed1bb2fab61ac7934aa0f19908b2c (diff) |
regulator: ab8500-ext: Add support for AB9540 regulators
Add the support for ab9540 external regulators.
Signed-off-by: Michel JAOUEN <michel.jaouen@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | drivers/regulator/ab8500-ext.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/regulator/ab8500-ext.c b/drivers/regulator/ab8500-ext.c index debae34b9dd4..1e92e0103380 100644 --- a/drivers/regulator/ab8500-ext.c +++ b/drivers/regulator/ab8500-ext.c | |||
@@ -393,6 +393,12 @@ int ab8500_ext_regulator_init(struct platform_device *pdev) | |||
393 | config.init_data = &pdata->ext_regulator[i]; | 393 | config.init_data = &pdata->ext_regulator[i]; |
394 | config.driver_data = info; | 394 | config.driver_data = info; |
395 | 395 | ||
396 | if (is_ab9540(ab8500) && | ||
397 | ((info->desc.id == AB8500_EXT_SUPPLY1) || | ||
398 | (info->desc.id == AB8500_EXT_SUPPLY2) || | ||
399 | (info->desc.id == AB8500_EXT_SUPPLY3))) | ||
400 | info->desc.ops = &ab8500_ext_regulator_ops; | ||
401 | |||
396 | /* register regulator with framework */ | 402 | /* register regulator with framework */ |
397 | info->rdev = regulator_register(&info->desc, &config); | 403 | info->rdev = regulator_register(&info->desc, &config); |
398 | 404 | ||