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>
This commit is contained in:
parent
35e1d5f634
commit
0fe17e20a6
|
@ -393,6 +393,12 @@ int ab8500_ext_regulator_init(struct platform_device *pdev)
|
|||
config.init_data = &pdata->ext_regulator[i];
|
||||
config.driver_data = info;
|
||||
|
||||
if (is_ab9540(ab8500) &&
|
||||
((info->desc.id == AB8500_EXT_SUPPLY1) ||
|
||||
(info->desc.id == AB8500_EXT_SUPPLY2) ||
|
||||
(info->desc.id == AB8500_EXT_SUPPLY3)))
|
||||
info->desc.ops = &ab8500_ext_regulator_ops;
|
||||
|
||||
/* register regulator with framework */
|
||||
info->rdev = regulator_register(&info->desc, &config);
|
||||
|
||||
|
|
Loading…
Reference in New Issue