power: supply: max8997_charger: Use devm_work_autocancel()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 13 Feb 2022 11:19:31 +0000 (12:19 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 24 Feb 2022 11:20:07 +0000 (12:20 +0100)
commitfdc9ce72cffea59c564dc890086b0d0b714d05b0
tree16fae70ae2eaf32c07cd0a40fef2fe4ac430fd72
parentd016fc7ab52ab378d8bc11ac6f7e326da7b7a625
power: supply: max8997_charger: Use devm_work_autocancel()

Use devm_work_autocancel() instead of hand writing it.
It saves a few lines of code.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max8997_charger.c