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

From: Thomas Weißschuh
Date: Sun Feb 04 2024 - 12:27:40 EST


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@xxxxxxxxxxxxxx>
---
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,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>