Skip to content

Commit

Permalink
regulator: da9055: Fix checking wrong value in da9055_gpio_init
Browse files Browse the repository at this point in the history
Check pdata->gpio_rsel && pdata->gpio_rsel[id] for the case GPI pin is muxed
with regulator to select the regulator register set A/B for voltage ramping.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Nov 16, 2012
1 parent f6130be commit 26cbd30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/da9055-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ static __devinit int da9055_gpio_init(struct da9055_regulator *regulator,
goto err;
}

if (pdata->gpio_rsel && pdata->gpio_ren[id]) {
if (pdata->gpio_rsel && pdata->gpio_rsel[id]) {
char name[18];
int gpio_mux = pdata->gpio_rsel[id];

Expand Down

0 comments on commit 26cbd30

Please sign in to comment.