diff options
| author | 2022-07-17 10:58:20 +0800 | |
|---|---|---|
| committer | 2022-09-11 12:09:10 +0200 | |
| commit | 0cb172a4918e0b180400c3e1b2894641703eab6d (patch) | |
| tree | 6e30f329060d481f00f916b0c54e84e5f7310b73 /include/linux/phy/git:/ssh:/git@git.zx2c4.com | |
| parent | power: supply: cpcap-charger: fix repeated words in comments (diff) | |
| download | linux-dev-0cb172a4918e0b180400c3e1b2894641703eab6d.tar.xz linux-dev-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 'include/linux/phy/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
