]> www.infradead.org Git - users/jedix/linux-maple.git/commit
power: supply: core: remove {,devm_}power_supply_register_no_ws()
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 5 Oct 2024 10:05:10 +0000 (12:05 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 15 Oct 2024 20:22:21 +0000 (22:22 +0200)
commit85d319e14f301e1c68131b74c1dceabae73d1e81
tree4ed6d5ad74a681662d8a49eb9024f15eadf56bfd
parent79b9630e6fc80f225e1564b42cae154970f31136
power: supply: core: remove {,devm_}power_supply_register_no_ws()

The same functionality is available through
power_supply_config::no_wakeup_source, which is more idiomatic.
All users of the old API have been converted.

Also remove the argument "ws" from __power_supply_register(),
as it is now always "true".

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20241005-power-supply-no-wakeup-source-v1-8-1d62bf9bcb1d@weissschuh.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_core.c
include/linux/power_supply.h