Skip to content

power: supply: support charge_types in the extensions API

Jelle van der Waa linux-pm 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest1 patch 2 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/1power: supply: support charge_types in extensionsdrivers/power/supply/power_supply_sysfs.c drivers/power/supply/test_power.c include/linux/power_supply.h+41 -31 reply

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchHans de Goede
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/1] power: supply: support charge_types in the extensions API

The goal of this patch is to make it possible for the ideapad-laptop driver to move from its custom conservation_mode sysfs attribute to the standardised charge_types sysfs attribute with a power_supply extension. Along with other laptop models which support an end charge threshold which limits it to a fixed value such as some Toshiba and LG models.

User space, in this case UPower would then be detect 'Long Life' as charge_types option and set it.

This patch should also allow the "dell-laptop" driver to move over to the extensions API.

Jelle van der Waa (1):
power: supply: support charge_types in extensions

 drivers/power/supply/power_supply_sysfs.c | 23 ++++++++++++++++++++++-
 drivers/power/supply/test_power.c         | 20 ++++++++++++++++++--
 include/linux/power_supply.h              |  1 +
 3 files changed, 41 insertions(+), 3 deletions(-)
Signature · 1 line
2.49.0