]> www.infradead.org Git - users/willy/xarray.git/commit
power: supply: sysfs: Move power_supply_show_enum_with_available() up
authorHans de Goede <hdegoede@redhat.com>
Sat, 31 Aug 2024 14:20:38 +0000 (16:20 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 3 Sep 2024 21:20:27 +0000 (23:20 +0200)
commit322900ac7d82be0475466f81946b6484cd1936bd
tree1fc351dc2cbec13739182d3682fa67f8efb2bf3b
parenta6456d43e9abebb5d7866e5edae3024188273306
power: supply: sysfs: Move power_supply_show_enum_with_available() up

Move power_supply_show_enum_with_available() higher up in
the power_supply_sysfs.c file.

This is a preparation patch to avoid needing a forward declaration
when replacing power_supply_show_usb_type() with it later on.

This commit only moves the function, there are no changes to it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240831142039.28830-6-hdegoede@redhat.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_sysfs.c