diff options
author | Zheyu Ma <[email protected]> | 2022-07-17 10:58:20 +0800 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2022-09-11 12:09:10 +0200 |
commit | 0cb172a4918e0b180400c3e1b2894641703eab6d (patch) | |
tree | 6e30f329060d481f00f916b0c54e84e5f7310b73 /scripts/gdb/linux/mm.py | |
parent | da7dc6a7a95ef00ff38e7c1873efa79bfec93de4 (diff) |
power: supply: cw2015: Use device managed API to simplify the code
Use devm_delayed_work_autocancel() instead of the INIT_DELAYED_WORK() to
remove the cw_bat_remove() function.
And power_supply_put_battery_info() can also be removed because the
power_supply_get_battery_info() uses device managed memory allocation.
Signed-off-by: Zheyu Ma <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions