summaryrefslogtreecommitdiff
path: root/drivers/power/reset/qcom-pon.c
diff options
context:
space:
mode:
authorZheyu Ma <zheyuma97@gmail.com>2022-07-17 10:58:20 +0800
committerSebastian Reichel <sre@kernel.org>2022-09-11 12:09:10 +0200
commit0cb172a4918e0b180400c3e1b2894641703eab6d (patch)
tree6e30f329060d481f00f916b0c54e84e5f7310b73 /drivers/power/reset/qcom-pon.c
parentda7dc6a7a95ef00ff38e7c1873efa79bfec93de4 (diff)
downloadlinux-0cb172a4918e0b180400c3e1b2894641703eab6d.tar.gz
linux-0cb172a4918e0b180400c3e1b2894641703eab6d.tar.bz2
linux-0cb172a4918e0b180400c3e1b2894641703eab6d.zip
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 'drivers/power/reset/qcom-pon.c')
0 files changed, 0 insertions, 0 deletions