Lines Matching refs:charge_gpiod
23 static struct gpio_desc *charge_gpiod; variable
103 bat_status = (charge_gpiod) ? in wm97xx_bat_update()
104 (gpiod_get_value(charge_gpiod) ? in wm97xx_bat_update()
174 charge_gpiod = devm_gpiod_get_optional(&dev->dev, NULL, GPIOD_IN); in wm97xx_bat_probe()
175 if (IS_ERR(charge_gpiod)) in wm97xx_bat_probe()
177 PTR_ERR(charge_gpiod), in wm97xx_bat_probe()
179 if (charge_gpiod) { in wm97xx_bat_probe()
180 gpiod_set_consumer_name(charge_gpiod, "BATT CHRG"); in wm97xx_bat_probe()
181 ret = request_irq(gpiod_to_irq(charge_gpiod), in wm97xx_bat_probe()
208 if (charge_gpiod) in wm97xx_bat_probe()
246 if (charge_gpiod) in wm97xx_bat_probe()
247 free_irq(gpiod_to_irq(charge_gpiod), dev); in wm97xx_bat_probe()
253 if (charge_gpiod) in wm97xx_bat_remove()
254 free_irq(gpiod_to_irq(charge_gpiod), dev); in wm97xx_bat_remove()