mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:24:31 +01:00
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 <jeff@labundy.com> Link: https://lore.kernel.org/r/aKJxxgEWpNaNcUaW@nixie71 Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
47ddf62b43
commit
c9ddc41cdd
1 changed files with 3 additions and 0 deletions
|
|
@ -2427,6 +2427,9 @@ static int iqs7222_parse_chan(struct iqs7222_private *iqs7222,
|
|||
if (error)
|
||||
return error;
|
||||
|
||||
if (!iqs7222->kp_type[chan_index][i])
|
||||
continue;
|
||||
|
||||
if (!dev_desc->event_offset)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue