iio: as3935: Use devm_delayed_work_autocancel()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 13 Feb 2022 12:30:11 +0000 (13:30 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Feb 2022 16:18:45 +0000 (16:18 +0000)
commit261ecd47b4d17c186aa17202f8ee325f380610e0
treee4fc5b8ec5236cd44834139a6a7d042400583c8b
parent342c6c5e2260875e0716a9f798dd89da431e679f
iio: as3935: Use devm_delayed_work_autocancel()

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

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/8d5c50f191bd8f751849d72127f83b14a7636d64.1644755396.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/as3935.c