power: supply: core: reduce power_supply_show_usb_type() parameters
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Fri, 3 Apr 2020 20:20:32 +0000 (22:20 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 1 May 2020 11:09:48 +0000 (13:09 +0200)
commitde46e0289310b5e56994eafec2f0d2a5da095ea9
tree586ce2c003d52db315fb9aecab5b105204054350
parent0edb259c98fcffef6916503282eb6e3133878b9a
power: supply: core: reduce power_supply_show_usb_type() parameters

Reduce power_supply_show_usb_type() parameter count by folding
power_supply_desc dereference into the function.  This makes following
patch making usb_types const easier.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_sysfs.c