Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86775879 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Sebastian Reichel
Browse files

power: supply: bq25890: Use gpiod_get()



Since index is always 0, replace gpiod_get_index() by gpiod_get().

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent cbe5c287
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -723,7 +723,7 @@ static int bq25890_irq_probe(struct bq25890_device *bq)
{
{
	struct gpio_desc *irq;
	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)) {
	if (IS_ERR(irq)) {
		dev_err(bq->dev, "Could not probe irq pin.\n");
		dev_err(bq->dev, "Could not probe irq pin.\n");
		return PTR_ERR(irq);
		return PTR_ERR(irq);