Skip to content

Commit a632470

Browse files
Bengt Jonssonbroonie
authored andcommitted
regulator: ab8500-ext: Add support for AB8505/AB9540
The external regulator driver checks for old AB8500 HW to apply a fix. This patch adds a check to see that it is a AB8500 (not AB8505/AB9540). Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
1 parent ed3c138 commit a632470

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/regulator/ab8500-ext.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ int ab8500_ext_regulator_init(struct platform_device *pdev)
369369
}
370370

371371
/* check for AB8500 2.x */
372-
if (abx500_get_chip_id(&pdev->dev) < 0x30) {
372+
if (is_ab8500_2p0_or_earlier(ab8500)) {
373373
struct ab8500_ext_regulator_info *info;
374374

375375
/* VextSupply3LPn is inverted on AB8500 2.x */

0 commit comments

Comments
 (0)