input: Allow repeat filtering to be disabled
authorSimon Glass <sjg@chromium.org>
Mon, 19 Oct 2015 03:17:25 +0000 (21:17 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 20 Nov 2015 03:13:40 +0000 (20:13 -0700)
commit0b186c0825f710a937578dc7d2ffbe125ddee7a3
treee1534b8250ca061850e2ef0fad72dabb91025ef3
parent3a85e4362aa830c0beb2b0253c0e70102b42f066
input: Allow repeat filtering to be disabled

Generally the input library handles processing of a list of scanned keys.
Repeated keys need to be generated based on a timer in this case, since all
that is provided is a list of keys current depressed.

Keyboards which do their own scanning will resend codes when they want to
inject a repeating key. Provide a function which tells the input library to
accept repeating keys and not to try to second-guess the caller.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/input/input.c
include/input.h