mbox series

[0/4] power: supply: core: align charge_behaviour format with docs

Message ID 20240204-power_supply-charge_behaviour_prop-v1-0-06a20c958f96@weissschuh.net
Headers show
Series power: supply: core: align charge_behaviour format with docs | expand

Message

Thomas Weißschuh Feb. 4, 2024, 5:26 p.m. UTC
The original submission of the charge_behaviour property did not
implement proper formatting in the default formatting handler in
power_supply_sysfs.c.

At that time it was not a problem because the only provider of the UAPI,
thinkpad_acpi, did its own formatting.

Now there is an in-tree driver, mm8013, and out-of-tree driver which use
the normal power-supply properties and are affected by the wrong
formatting.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (4):
      power: supply: core: fix charge_behaviour formatting
      power: supply: test-power: implement charge_behaviour property
      power: supply: mm8013: implement POWER_SUPPLY_PROP_CHARGE_BEHAVIOUR_AVAILABLE
      power: supply: core: drop workaround for missing POWER_SUPPLY_PROP_CHARGE_BEHAVIOUR_AVAILABLE

 drivers/power/supply/mm8013.c             |  5 +++++
 drivers/power/supply/power_supply_sysfs.c | 28 ++++++++++++++++++++++++++++
 drivers/power/supply/test_power.c         | 10 ++++++++++
 include/linux/power_supply.h              |  1 +
 4 files changed, 44 insertions(+)
---
base-commit: 54be6c6c5ae8e0d93a6c4641cb7528eb0b6ba478
change-id: 20230929-power_supply-charge_behaviour_prop-10ccfd96a666

Best regards,