Skip to content

support charge_types in the extensions API

Jelle van der Waa linux-pm llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyIn review

Patches in v1 No applies recorded yet

#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 v1 thread

Cover letter [PATCH 0/1] support charge_types in the extensions API

From: Jelle van der Waa <[email protected]>

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