Lines Matching refs:charge_gpio
103 bat_status = (pdata->charge_gpio >= 0) ? in wm97xx_bat_update()
104 (gpio_get_value(pdata->charge_gpio) ? in wm97xx_bat_update()
174 if (gpio_is_valid(pdata->charge_gpio)) { in wm97xx_bat_probe()
175 ret = gpio_request(pdata->charge_gpio, "BATT CHRG"); in wm97xx_bat_probe()
178 ret = gpio_direction_input(pdata->charge_gpio); in wm97xx_bat_probe()
181 ret = request_irq(gpio_to_irq(pdata->charge_gpio), in wm97xx_bat_probe()
207 if (pdata->charge_gpio >= 0) in wm97xx_bat_probe()
245 if (gpio_is_valid(pdata->charge_gpio)) in wm97xx_bat_probe()
246 free_irq(gpio_to_irq(pdata->charge_gpio), dev); in wm97xx_bat_probe()
248 if (gpio_is_valid(pdata->charge_gpio)) in wm97xx_bat_probe()
249 gpio_free(pdata->charge_gpio); in wm97xx_bat_probe()
258 if (pdata && gpio_is_valid(pdata->charge_gpio)) { in wm97xx_bat_remove()
259 free_irq(gpio_to_irq(pdata->charge_gpio), dev); in wm97xx_bat_remove()
260 gpio_free(pdata->charge_gpio); in wm97xx_bat_remove()