HID: usbhid: extend the polling interval configuration to keyboards
authorFilip Alac <filipalac@gmail.com>
Wed, 21 Mar 2018 16:28:25 +0000 (17:28 +0100)
committerJiri Kosina <jkosina@suse.cz>
Fri, 23 Mar 2018 13:48:37 +0000 (14:48 +0100)
commit2ddc8e2d2b5902b376fee51585c8eed72b8836e7
treeb1b77a503fb105b998b5999ea21c9af10aba24ed
parentc17a7476e4c41884d82e3675c25ceae982c07a63
HID: usbhid: extend the polling interval configuration to keyboards

For mouse and joystick devices user can change the polling interval
via usbhid.mousepoll and usbhid.jspoll.
Implement the same thing for keyboards, so user can
reduce(or increase) input latency this way.

This has been tested with a Cooler Master Devastator with
kbpoll=32, resulting in delay between events of 32 ms(values were taken
from evtest).

Signed-off-by: Filip Alac <filipalac@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Documentation/admin-guide/kernel-parameters.txt
drivers/hid/usbhid/hid-core.c