Lines Matching refs:charge_gpio
98 charger->bat_status = (info->charge_gpio >= 0) ? in z2_batt_update()
99 (gpio_get_value(info->charge_gpio) ? in z2_batt_update()
134 if (info->charge_gpio >= 0) in z2_batt_ps_init()
150 if (info->charge_gpio >= 0) in z2_batt_ps_init()
209 if (info->charge_gpio >= 0 && gpio_is_valid(info->charge_gpio)) { in z2_batt_probe()
210 ret = gpio_request(info->charge_gpio, "BATT CHRG"); in z2_batt_probe()
214 ret = gpio_direction_input(info->charge_gpio); in z2_batt_probe()
218 irq_set_irq_type(gpio_to_irq(info->charge_gpio), in z2_batt_probe()
220 ret = request_irq(gpio_to_irq(info->charge_gpio), in z2_batt_probe()
248 if (info->charge_gpio >= 0 && gpio_is_valid(info->charge_gpio)) in z2_batt_probe()
249 free_irq(gpio_to_irq(info->charge_gpio), charger); in z2_batt_probe()
251 if (info->charge_gpio >= 0 && gpio_is_valid(info->charge_gpio)) in z2_batt_probe()
252 gpio_free(info->charge_gpio); in z2_batt_probe()
267 if (info->charge_gpio >= 0 && gpio_is_valid(info->charge_gpio)) { in z2_batt_remove()
268 free_irq(gpio_to_irq(info->charge_gpio), charger); in z2_batt_remove()
269 gpio_free(info->charge_gpio); in z2_batt_remove()