linux/drivers/power
Hans de Goede e3668e37f9 power: supply: axp288_charger: Use devm_power_supply_register
Use devm_power_supply_register instead of power_supply_register,
this avoids the need to do manual cleanup and results in quite
a nice code cleanup.

Note it may seem excessive to add a "struct device *dev" helper local
variable for the 1 time it is used in this patch, but future patches
in this series also use it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2017-01-04 22:02:31 +01:00
..
avs PM / AVS: rockchip-io: make the log more consistent 2016-10-21 14:51:03 +02:00
reset ktime: Cleanup ktime_set() usage 2016-12-25 17:21:22 +01:00
supply power: supply: axp288_charger: Use devm_power_supply_register 2017-01-04 22:02:31 +01:00
Kconfig power: move power supply drivers to power/supply 2016-08-11 01:11:03 +02:00
Makefile power: move power supply drivers to power/supply 2016-08-11 01:11:03 +02:00