]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1109cf2a53ebf2bec72491d73c353eea91b8781d
treef2cfc0b01334ca058be14550afb001521f3fefe6
parentabfe8188f92653bebb08b218e45a38f22e8dc638
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