Skip to content

Commit c9ddc41

Browse files
jlabundydtor
authored andcommitted
Input: iqs7222 - avoid enabling unused interrupts
If a proximity event node is defined so as to specify the wake-up properties of the touch surface, the proximity event interrupt is enabled unconditionally. This may result in unwanted interrupts. Solve this problem by enabling the interrupt only if the event is mapped to a key or switch code. Signed-off-by: Jeff LaBundy <[email protected]> Link: https://lore.kernel.org/r/aKJxxgEWpNaNcUaW@nixie71 Cc: [email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 47ddf62 commit c9ddc41

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/input/misc/iqs7222.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2427,6 +2427,9 @@ static int iqs7222_parse_chan(struct iqs7222_private *iqs7222,
24272427
if (error)
24282428
return error;
24292429

2430+
if (!iqs7222->kp_type[chan_index][i])
2431+
continue;
2432+
24302433
if (!dev_desc->event_offset)
24312434
continue;
24322435

0 commit comments

Comments
 (0)