summaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/adp5061.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2022-02-13 18:55:05 +0100
committerSebastian Reichel <sebastian.reichel@collabora.com>2022-02-24 12:17:41 +0100
commit419c0e9d25ac083877eb37143b54eb57af1401dd (patch)
tree41c477f9a2496da8c11b410f2db473826766085a /drivers/power/supply/adp5061.c
parentde85193cff0d94d030a53656d8fcc41794807bef (diff)
downloadlinux-419c0e9d25ac083877eb37143b54eb57af1401dd.tar.gz
linux-419c0e9d25ac083877eb37143b54eb57af1401dd.tar.bz2
linux-419c0e9d25ac083877eb37143b54eb57af1401dd.zip
power: supply: da9150-fg: Use devm_delayed_work_autocancel()
This driver only uses managed resources, except for the delayed work, if it is used. Use devm_delayed_work_autocancel() to also manage the delayed work. The error handling path of the probe and the remove function can both be removed. This saves a few lines of code. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/adp5061.c')
0 files changed, 0 insertions, 0 deletions