Skip to content

Commit

Permalink
regulator: ab8500-ext: Add support for AB8505/AB9540
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bengt Jonsson authored and Mark Brown committed Apr 1, 2013
1 parent ed3c138 commit a632470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/ab8500-ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ int ab8500_ext_regulator_init(struct platform_device *pdev)
}

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

/* VextSupply3LPn is inverted on AB8500 2.x */
Expand Down

0 comments on commit a632470

Please sign in to comment.