commit | e3668e37f9078ccc1e938b9ddfc112877bbcf60a | [log] [tgz] |
---|---|---|
author | Hans de Goede <hdegoede@redhat.com> | Wed Dec 21 15:36:48 2016 +0100 |
committer | Sebastian Reichel <sre@kernel.org> | Wed Jan 04 22:02:31 2017 +0100 |
tree | 8df1bf7b03c23f06ddc18c36909a2820b109f55c | |
parent | 8bb17b6c83281b32adb063aa1baca2d531731edb [diff] |
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>