iio: light: tsl2563: Remove flush_scheduled_work
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Thu, 17 Mar 2016 13:55:11 +0000 (19:25 +0530)
committerJonathan Cameron <jic23@kernel.org>
Sun, 20 Mar 2016 11:04:49 +0000 (11:04 +0000)
commit9e61d901155bcd4e58cbce5eb4aaa8e870267334
treeb9c97373e65305451d3c4bbf4e26d0970e0b5e9e
parent334ecdd0ba45bb68bce0f1429a4a1e9584ba437e
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: Tejun Heo <tj@kernel.org>
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/tsl2563.c