From: Andy Shevchenko Date: Mon, 20 Feb 2017 17:12:23 +0000 (+0200) Subject: power: supply: bq25890: Use gpiod_get() X-Git-Tag: v4.14-rc1~903^2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=867758793a765b568a28b4973321875752c662bf;p=platform%2Fkernel%2Flinux-rpi.git power: supply: bq25890: Use gpiod_get() Since index is always 0, replace gpiod_get_index() by gpiod_get(). Signed-off-by: Andy Shevchenko Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index f993a55..8e2c41d 100644 --- a/drivers/power/supply/bq25890_charger.c +++ b/drivers/power/supply/bq25890_charger.c @@ -723,7 +723,7 @@ static int bq25890_irq_probe(struct bq25890_device *bq) { struct gpio_desc *irq; - irq = devm_gpiod_get_index(bq->dev, BQ25890_IRQ_PIN, 0, GPIOD_IN); + irq = devm_gpiod_get(bq->dev, BQ25890_IRQ_PIN, GPIOD_IN); if (IS_ERR(irq)) { dev_err(bq->dev, "Could not probe irq pin.\n"); return PTR_ERR(irq);