diff options
| author | Hans de Goede <[email protected]> | 2016-12-21 15:36:48 +0100 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2017-01-04 22:02:31 +0100 |
| commit | e3668e37f9078ccc1e938b9ddfc112877bbcf60a (patch) | |
| tree | 8df1bf7b03c23f06ddc18c36909a2820b109f55c /tools/perf/scripts/python | |
| 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 <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions