Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: iqs7222 - avoid sending empty SYN_REPORT events

Add a check to prevent sending undefined events, which ultimately
map to SYN_REPORT.

Fixes: e505edaedcb9 ("Input: add support for Azoteq IQS7222A/B/C")
Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Link: https://lore.kernel.org/r/20220908131548.48120-7-jeff@labundy.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Jeff LaBundy and committed by
Dmitry Torokhov
514c13b1 10e629d3

+3
+3
drivers/input/misc/iqs7222.c
··· 2326 2326 int k = 2 + j * (num_chan > 16 ? 2 : 1); 2327 2327 u16 state = le16_to_cpu(status[k + i / 16]); 2328 2328 2329 + if (!iqs7222->kp_type[i][j]) 2330 + continue; 2331 + 2329 2332 input_event(iqs7222->keypad, 2330 2333 iqs7222->kp_type[i][j], 2331 2334 iqs7222->kp_code[i][j],