Skip to content

power_supply: errno, hwmon rollback and docs/ABI sync

Iván Ezequiel Rodriguez linux-pm lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5power: return -ENOMEM on OCV table alloc failuredrivers/power/supply/power_supply_core.c+1 -10 replies
2/5power: restore hwmon if extension update failsdrivers/power/supply/power_supply_core.c+10 -00 replies
3/5docs: power: fix power_supply_class.rst status, health and time_toDocumentation/power/power_supply_class.rst+13 -130 replies
4/5docs: ABI: complete power_supply type valid valuesDocumentation/ABI/testing/sysfs-class-power+3 -11 reply
5/5power: use tabs in power_supply_get_property_directdrivers/power/supply/power_supply_core.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/5] power_supply: errno, hwmon rollback and docs/ABI sync

Hi,

Small power_supply hygiene on top of v7.3-rc1.

Patch 1 returns -ENOMEM when OCV table allocation fails (was -EINVAL). Patch 2 best-effort recreates hwmon after register_extension() rolls back a failed update_sysfs_and_hwmon() that already removed the old hwmon group.
Patches 3-4 align Documentation/power/power_supply_class.rst and the sysfs-class-power ABI type values with the current enums/strings. Patch 5 replaces spaces with tabs in get_property_direct().

Base: v7.3-rc1

Tested: built drivers/power/supply/power_supply_core.o with CONFIG_POWER_SUPPLY=y; checkpatch clean on 0001-0005.

Thanks,
Iván

Iván Ezequiel Rodriguez (5):
power: return -ENOMEM on OCV table alloc failure
power: restore hwmon if extension update fails
docs: power: fix power_supply_class.rst status, health and time_to
docs: ABI: complete power_supply type valid values
power: use tabs in power_supply_get_property_direct

 Documentation/ABI/testing/sysfs-class-power |  4 +++-
 Documentation/power/power_supply_class.rst  | 26 +++++++++++++-------------
 drivers/power/supply/power_supply_core.c    | 14 ++++++++++++--
 3 files changed, 28 insertions(+), 16 deletions(-)
Signature · 1 line
2.43.0