summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorAndy Shevchenko2017-02-20 18:12:23 +0100
committerSebastian Reichel2017-04-14 01:41:34 +0200
commit867758793a765b568a28b4973321875752c662bf (patch)
tree2278eccc898a1f7c170524d0cdc446742fd84500 /drivers/power
parentdt-bindings: power/supply: rename max8925_batter.txt to max8925_battery.txt (diff)
downloadkernel-qcow2-linux-867758793a765b568a28b4973321875752c662bf.tar.gz
kernel-qcow2-linux-867758793a765b568a28b4973321875752c662bf.tar.xz
kernel-qcow2-linux-867758793a765b568a28b4973321875752c662bf.zip
power: supply: bq25890: Use gpiod_get()
Since index is always 0, replace gpiod_get_index() by gpiod_get(). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/bq25890_charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c
index f993a55cde20..8e2c41ded171 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);