power: supply: max17042_battery: Use devm_work_autocancel()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 18 Feb 2022 17:37:37 +0000 (18:37 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 24 Feb 2022 11:00:14 +0000 (12:00 +0100)
commite5372503d82b780ebc3fea3b893f04ca6f52fe42
treeff5ca2e3ef92556570dd096e7d94006a2314991e
parent4c678b7a6442c1d2d137639b2b6730f0587a956d
power: supply: max17042_battery: Use devm_work_autocancel()

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

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max17042_battery.c