Searched refs:is_charging (Results 1 – 3 of 3) sorted by relevance
358 int is_charging; in twl4030_bci_get_property() local367 is_charging = state & TWL4030_MSTATEC_USB; in twl4030_bci_get_property()369 is_charging = state & TWL4030_MSTATEC_AC; in twl4030_bci_get_property()373 if (is_charging) in twl4030_bci_get_property()380 if (!is_charging) in twl4030_bci_get_property()397 if (!is_charging) in twl4030_bci_get_property()406 val->intval = is_charging && in twl4030_bci_get_property()
153 static bool is_charging(struct charger_manager *cm) in is_charging() function222 return is_charging(cm); in is_polling_required()407 if (is_charging(cm)) in charger_get_property()476 if (is_charging(cm)) in charger_get_property()491 !is_charging(cm)) { in charger_get_property()512 if (is_charging(cm)) { in charger_get_property()529 !is_charging(cm)) { in charger_get_property()538 if (!ret && val->intval >= 100 && !is_charging(cm)) { in charger_get_property()548 if (is_charging(cm)) { in charger_get_property()
195 int is_charging; in jz_battery_update() local198 is_charging = gpio_get_value(jz_battery->pdata->gpio_charge); in jz_battery_update()199 is_charging ^= jz_battery->pdata->gpio_charge_active_low; in jz_battery_update()200 if (is_charging) in jz_battery_update()