]> git.baikalelectronics.ru Git - kernel.git/commit
Input: polldev - immediately poll device upon opening
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 3 Aug 2011 05:22:46 +0000 (22:22 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 9 Aug 2011 08:32:45 +0000 (01:32 -0700)
commit6abb35cd37ff2c2d37b0f38bf2d9123709a55df6
tree2371dd2e1b22dbf59506a33d87006cd983b31a1b
parent5a34f1d40cd0d1b4415748da969683d67bce805f
Input: polldev - immediately poll device upon opening

To allow open/ioctl(EVIOCGABS)/close use pattern for polled devices read
the device in context of open() call instead of offloading the first read
to a workqueue. This will ensure that once call to open() returns device
would have cached reasonably recent axis values that can be retrieved via
appropriate ioctl.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/input-polldev.c