Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 381f3f1c authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

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: default avatarDmitry Torokhov <dtor@mail.ru>
parent f5f96b93
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -88,8 +88,7 @@ static int input_open_polled_device(struct input_dev *input)
	if (dev->open)
		dev->open(dev);

	queue_delayed_work(polldev_wq, &dev->work,
			   msecs_to_jiffies(dev->poll_interval));
	queue_delayed_work(polldev_wq, &dev->work, 0);

	return 0;
}