Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/power/supply/
Dgpio-charger.c34 struct gpio_desc *charge_status; member
95 if (gpiod_get_value_cansleep(gpio_charger->charge_status)) in gpio_charger_get_property()
258 struct gpio_desc *charge_status; in gpio_charger_probe() local
289 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()
Dds2760_battery.c108 int charge_status; /* POWER_SUPPLY_STATUS_* */ member
391 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 …]
Dab8500_chargalg.c225 int charge_status; member
614 di->charge_status = POWER_SUPPLY_STATUS_NOT_CHARGING; in ab8500_chargalg_stop_charging()
634 di->charge_status = POWER_SUPPLY_STATUS_CHARGING; in ab8500_chargalg_hold_charging()
755 if (di->charge_status == POWER_SUPPLY_STATUS_CHARGING && in ab8500_chargalg_end_of_charge()
765 di->charge_status = POWER_SUPPLY_STATUS_FULL; in ab8500_chargalg_end_of_charge()
1337 di->charge_status, in ab8500_chargalg_algorithm()
1354 di->charge_status = POWER_SUPPLY_STATUS_DISCHARGING; in ab8500_chargalg_algorithm()
1430 di->charge_status = POWER_SUPPLY_STATUS_CHARGING; in ab8500_chargalg_algorithm()
1439 if (di->charge_status == POWER_SUPPLY_STATUS_FULL && in ab8500_chargalg_algorithm()
1530 di->charge_status = POWER_SUPPLY_STATUS_CHARGING; in ab8500_chargalg_algorithm()
[all …]
Dltc4162-l-charger.c530 static DEVICE_ATTR_RO(charge_status);
Dbq2415x_charger.c1438 static DEVICE_ATTR(charge_status, S_IRUGO, bq2415x_sysfs_show_status, NULL);
/linux-5.19.10/Documentation/ABI/testing/
Dsysfs-class-power-ltc4162l1 What: /sys/class/power_supply/ltc4162-l/charge_status