diff options
| author | Hans de Goede <hdegoede@redhat.com> | 2016-12-21 17:36:48 +0300 |
|---|---|---|
| committer | Sebastian Reichel <sre@kernel.org> | 2017-01-05 00:02:31 +0300 |
| commit | e3668e37f9078ccc1e938b9ddfc112877bbcf60a (patch) | |
| tree | 8df1bf7b03c23f06ddc18c36909a2820b109f55c /tools/perf/scripts/python/sched-migration.py | |
| parent | 8bb17b6c83281b32adb063aa1baca2d531731edb (diff) | |
| download | linux-e3668e37f9078ccc1e938b9ddfc112877bbcf60a.tar.xz | |
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 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions
