Input: input-polldev - add sysfs interface for controlling poll interval
authorSamu Onkalo <samu.p.onkalo@nokia.com>
Sat, 14 Nov 2009 05:13:22 +0000 (21:13 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 20 Nov 2009 08:52:09 +0000 (00:52 -0800)
commitdad725d089b94bce8bbc769b7471dcfba3fbda0e
tree5010ad0f241530511bd5e80b7f5437556527641a
parentbc8f1eaf68a8aa1d993492f1ad2d74502665f578
Input: input-polldev - add sysfs interface for controlling poll interval

Sysfs entry for reading and setting of the polling interval. If the
interval is set to 0, polling is stopped. Polling is restarted when
interval is changed to non-zero.

sysfs entries:
poll = current polling interval in msec (RW)
max = max allowed polling interval (RO)
min = min allowed polling interval (RO)

Minimum and maximum limit for interval can be set while setting up the
device.

Interval can be adjusted even if the input device is not currently open.

[dtor@mail.ru: add kernel doc markup for the new fields]
Signed-off-by: Samu Onkalo <samu.p.onkalo@nokia.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/input-polldev.c
include/linux/input-polldev.h