Input: cyapa - fix setting suspend scan rate
authorDudley Du <dudl@cypress.com>
Mon, 20 Apr 2015 17:00:05 +0000 (10:00 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 20 Apr 2015 17:30:09 +0000 (10:30 -0700)
commita333a03ce969c18f97f1eafa3dc1072caa33454e
tree52ff7be1cc15b1a239a0cd3bb6607f79d7791129
parent9f423801c9e849df56b37833df895685c9d8a940
Input: cyapa - fix setting suspend scan rate

The suspend scan rate value should not exceed 1000, unfortunately when
implementing the limit we used max_t instead of min_t, causing the value to
be at least 1000.

Signed-off-by: Dudley Du <dudl@cypress.com>
Reviewed-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/cyapa.c