Home
last modified time | relevance | path

Searched refs:is_charging (Results 1 – 3 of 3) sorted by relevance

/linux-3.4.99/drivers/power/
Dtwl4030_charger.c358 int is_charging; in twl4030_bci_get_property() local
367 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()
Dcharger-manager.c153 static bool is_charging(struct charger_manager *cm) in is_charging() function
222 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()
Djz4740-battery.c195 int is_charging; in jz_battery_update() local
198 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()