Commit 26cbd3073394b966654294c8cb9cb2fec870c567

Authored by Axel Lin
Committed by Mark Brown
1 parent f6130be652

regulator: da9055: Fix checking wrong value in da9055_gpio_init

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/regulator/da9055-regulator.c
... ... @@ -501,7 +501,7 @@
501 501 goto err;
502 502 }
503 503  
504   - if (pdata->gpio_rsel && pdata->gpio_ren[id]) {
  504 + if (pdata->gpio_rsel && pdata->gpio_rsel[id]) {
505 505 char name[18];
506 506 int gpio_mux = pdata->gpio_rsel[id];
507 507