Skip to content
Commit 9e61d901 authored by Amitoj Kaur Chawla's avatar Amitoj Kaur Chawla Committed by Jonathan Cameron
Browse files

iio: light: tsl2563: Remove flush_scheduled_work



flush_scheduled_work is scheduled for deprecation.
Replace cancel_delayed_work and flush_scheduled_work with
cancel_delayed_work_sync instead to ensure there is no pending or
running work item.

Since there is only one work item, chip->poweroff_work, there are
no further dependencies of flush_scheduled_work().

Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarAmitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 334ecdd0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment