summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-12-21 15:36:48 +0100
committerSebastian Reichel <sre@kernel.org>2017-01-04 22:02:31 +0100
commite3668e37f9078ccc1e938b9ddfc112877bbcf60a (patch)
tree8df1bf7b03c23f06ddc18c36909a2820b109f55c /firmware
parent8bb17b6c83281b32adb063aa1baca2d531731edb (diff)
downloadlinux-e3668e37f9078ccc1e938b9ddfc112877bbcf60a.tar.bz2
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>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions