Input: tc3589x-keypad - remove unnecessary checks
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 21 Apr 2012 05:33:09 +0000 (22:33 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 21 Apr 2012 06:08:48 +0000 (23:08 -0700)
commit71f3d070a309504cdfef87b9e98836395b75ae0e
tree75ed4cbae62fece04fd06a15a7460fa8215bb2fa
parentbcad87bd92f4331d4422c1afd571e66f7f5c95d6
Input: tc3589x-keypad - remove unnecessary checks

settle_time and debounce_period are u8 and thus can not be greater than
TC3589x_MAX_DEBOUNCE_SETTLE which is 255.

There also no need to mask out nibbles form board->krow and board->kcol
as we validate that they are in correct range.

Reported-by: Werner <w.landgraf@ru.ru>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/tc3589x-keypad.c