Input: adafruit-seesaw - only report buttons that changed state
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 11 Jan 2024 07:13:01 +0000 (23:13 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 28 Mar 2024 20:37:55 +0000 (13:37 -0700)
commit8984e0b569236c8581901efce2f1f4d03cd3dec1
tree92c5239ce068427757789e40db22ef69d569efca
parentd40e9edcf3eb925c259df9f9dd7319a4fcbc675b
Input: adafruit-seesaw - only report buttons that changed state

If a button has not changed its state when we poll the device the
driver does not need to report it. While duplicate events will be
filtered out by the input core anyway we can do it very cheaply
directly in the driver.

Link: https://lore.kernel.org/r/ZZ-U_bmZpIdoYA6c@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/adafruit-seesaw.c