Input: polled device - schedule first poll immediately
It does not make sense to wait poll_interval before performing first read after opening the device, schedule the read immediately instead. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
@@ -88,8 +88,7 @@ static int input_open_polled_device(struct input_dev *input)
|
|||||||
if (dev->open)
|
if (dev->open)
|
||||||
dev->open(dev);
|
dev->open(dev);
|
||||||
|
|
||||||
queue_delayed_work(polldev_wq, &dev->work,
|
queue_delayed_work(polldev_wq, &dev->work, 0);
|
||||||
msecs_to_jiffies(dev->poll_interval));
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user