summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorZheyu Ma <zheyuma97@gmail.com>2022-07-17 05:58:20 +0300
committerSebastian Reichel <sre@kernel.org>2022-09-11 13:09:10 +0300
commit0cb172a4918e0b180400c3e1b2894641703eab6d (patch)
tree6e30f329060d481f00f916b0c54e84e5f7310b73 /tools/perf/scripts/python/mem-phys-addr.py
parentda7dc6a7a95ef00ff38e7c1873efa79bfec93de4 (diff)
downloadlinux-0cb172a4918e0b180400c3e1b2894641703eab6d.tar.xz
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 <zheyuma97@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions