Input: tps6507x-ts - a couple work queue cleanups
authorDan Carpenter <error27@gmail.com>
Wed, 2 Jun 2010 04:29:40 +0000 (21:29 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 2 Jun 2010 07:11:18 +0000 (00:11 -0700)
commitf7a2e30246281944064113dafbafe3eb14cd89e3
treef2cfc0b01334ca058be14550afb001521f3fefe6
parentfbf89f25fc4dc68ba0857aca87e70fa5d2592d81
Input: tps6507x-ts - a couple work queue cleanups

1) Use msecs_to_jiffies() instead of calculating by hand.
2) Call cancel_delayed_work_sync() instead of cancel_delayed_work()
   followed by a separate flush_workqueue().
3) Remove the "tsc->wq = 0;"  Sparse complains about that because
   tsc->wq is a pointer, not an int.  It's not needed because we just
   free the pointer anyway.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/tps6507x-ts.c