Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A Dcw2015_battery.c68 bool charger_attached; member
296 if (cw_bat->charger_attached && HYSTERESIS(soc, cw_bat->soc, 0, 3)) in cw_get_soc()
300 if (!cw_bat->charger_attached && HYSTERESIS(soc, cw_bat->soc, 3, 0)) in cw_get_soc()
353 bool charger_attached; in cw_update_charge_status() local
355 charger_attached = !!ret; in cw_update_charge_status()
356 if (cw_bat->charger_attached != charger_attached) { in cw_update_charge_status()
358 if (charger_attached) in cw_update_charge_status()
361 cw_bat->charger_attached = charger_attached; in cw_update_charge_status()
394 if (cw_bat->charger_attached) { in cw_update_status()
447 dev_dbg(cw_bat->dev, "charger_attached = %d\n", cw_bat->charger_attached); in cw_bat_work()