]> www.infradead.org Git - users/jedix/linux-maple.git/commit
power: supply: core: fix build of extension sysfs group if CONFIG_SYSFS=n
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 19 Dec 2024 14:28:18 +0000 (15:28 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 19 Dec 2024 20:45:58 +0000 (21:45 +0100)
commit21096800c5ac634a9fbbac21505bfd798163b390
tree377393b5481a32944d5a43acddd3542bd5ca218e
parent5972da73f75af6002b72e5cd61002855b6b4eda3
power: supply: core: fix build of extension sysfs group if CONFIG_SYSFS=n

Add and use wrapper functions for the sysfs interaction.
Restore the compatibility of CONFIG_POWER_SUPPLY=y and CONFIG_SYSFS=n.

Reported-by: Nathan Chancellor <nathan@kernel.org>
Closes: https://lore.kernel.org/lkml/20241218195229.GA2796534@ax162/
Fixes: 288a2cabcf6b ("power: supply: core: add UAPI to discover currently used extensions")
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20241219-psy-extensions-sysfs-v1-1-868fc6cb46d6@weissschuh.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply.h
drivers/power/supply/power_supply_core.c
drivers/power/supply/power_supply_sysfs.c