Input: alps - fix a mismatch between a condition check and its comment
In the function alps_is_cs19_trackpoint(), we check if the param is
in the 0x20~0x2f range, but the code we wrote for this checking is not
(param & 0x20) does not mean param is in the range of 0x20~0x2f,
it also means the param is in the range of 0x30~0x3f, 0x60~0x6f...
Now fix it with a new condition checking ((param & 0xf0) == 0x20).
Fixes: 7e4935ccc323 ("Input: alps - don't handle ALPS cs19 trackpoint-only device")
Signed-off-by: Hui Wang <email@example.com>
Signed-off-by: Dmitry Torokhov <firstname.lastname@example.org>
1 file changed