HID: logitech-hidpp: Support WirelessDeviceStatus connect events
authorMazin Rezk <mnrzk@protonmail.com>
Sun, 27 Oct 2019 17:44:13 +0000 (17:44 +0000)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 18 Dec 2019 14:35:25 +0000 (15:35 +0100)
commit0da0a63b7cbabe9d930015e94e890c82cab7b3d3
treee2567be2719ce0370a34b2fc840b1d279cc92c76
parentc2a932717a5106db97f3480b040b8f74a1761889
HID: logitech-hidpp: Support WirelessDeviceStatus connect events

This patch allows hidpp_report_is_connect_event to support
WirelessDeviceStatus connect events.

The WirelessDeviceStatus feature index is stored in hidpp_device when
probed. The connect event's fap feature_index is compared against it if the
device supports it.

Signed-off-by: Mazin Rezk <mnrzk@protonmail.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-logitech-hidpp.c