Searched refs:charge_status (Results 1 – 4 of 4) sorted by relevance
34 struct gpio_desc *charge_status; member95 if (gpiod_get_value_cansleep(gpio_charger->charge_status)) in gpio_charger_get_property()258 struct gpio_desc *charge_status; in gpio_charger_probe() local289 charge_status = devm_gpiod_get_optional(dev, "charge-status", GPIOD_IN); in gpio_charger_probe()290 if (IS_ERR(charge_status)) in gpio_charger_probe()291 return PTR_ERR(charge_status); in gpio_charger_probe()292 if (charge_status) { in gpio_charger_probe()293 gpio_charger->charge_status = charge_status; in gpio_charger_probe()343 gpio_charger->charge_status); in gpio_charger_probe()
108 int charge_status; /* POWER_SUPPLY_STATUS_* */ member391 int old_charge_status = di->charge_status; in ds2760_battery_update_status()395 if (di->charge_status == POWER_SUPPLY_STATUS_UNKNOWN) in ds2760_battery_update_status()400 di->charge_status = POWER_SUPPLY_STATUS_CHARGING; in ds2760_battery_update_status()403 if (di->charge_status != POWER_SUPPLY_STATUS_NOT_CHARGING) in ds2760_battery_update_status()406 di->charge_status = POWER_SUPPLY_STATUS_NOT_CHARGING; in ds2760_battery_update_status()409 di->charge_status != POWER_SUPPLY_STATUS_FULL) { in ds2760_battery_update_status()418 di->charge_status = POWER_SUPPLY_STATUS_CHARGING; in ds2760_battery_update_status()420 di->charge_status = POWER_SUPPLY_STATUS_FULL; in ds2760_battery_update_status()426 di->charge_status = POWER_SUPPLY_STATUS_DISCHARGING; in ds2760_battery_update_status()[all …]
238 int charge_status; member656 di->charge_status = POWER_SUPPLY_STATUS_NOT_CHARGING; in abx500_chargalg_stop_charging()676 di->charge_status = POWER_SUPPLY_STATUS_CHARGING; in abx500_chargalg_hold_charging()790 if (di->charge_status == POWER_SUPPLY_STATUS_CHARGING && in abx500_chargalg_end_of_charge()800 di->charge_status = POWER_SUPPLY_STATUS_FULL; in abx500_chargalg_end_of_charge()1403 di->charge_status, in abx500_chargalg_algorithm()1420 di->charge_status = POWER_SUPPLY_STATUS_DISCHARGING; in abx500_chargalg_algorithm()1434 di->charge_status = POWER_SUPPLY_STATUS_NOT_CHARGING; in abx500_chargalg_algorithm()1516 di->charge_status = POWER_SUPPLY_STATUS_CHARGING; in abx500_chargalg_algorithm()1525 if (di->charge_status == POWER_SUPPLY_STATUS_FULL && in abx500_chargalg_algorithm()[all …]
1438 static DEVICE_ATTR(charge_status, S_IRUGO, bq2415x_sysfs_show_status, NULL);