diff options
author | Jeff LaBundy <[email protected]> | 2022-06-27 15:13:49 -0700 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2022-06-27 15:25:50 -0700 |
commit | 56a0c54c4c2bdb6c0952de90dd690020a703b50e (patch) | |
tree | d197c8900b7633fc78b0ef541a02625912e5da21 /lib/mpi/mpi-mod.c | |
parent | 0efff5c0e5bc34656c8ba2d940ee0d1f02962524 (diff) |
Input: iqs7222 - correct slider event disable logic
If a positive swipe/flick gesture is defined but the corresponding
negative gesture is not, the former is inadvertently disabled. Fix
this by gently refactoring the logic responsible for disabling all
gestures by default.
As part of this change, make the code a bit simpler by eliminating
a superfluous conditional check. If a slider event does not define
an enable control, the second term of the bitwise AND operation is
simply 0xFFFF.
Fixes: e505edaedcb9 ("Input: add support for Azoteq IQS7222A/B/C")
Signed-off-by: Jeff LaBundy <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions