HID: logitech-hidpp: detect HID++ 2.0 errors too
authorPeter Wu <peter@lekensteyn.nl>
Tue, 16 Dec 2014 00:50:14 +0000 (01:50 +0100)
committerJiri Kosina <jkosina@suse.cz>
Fri, 19 Dec 2014 10:44:11 +0000 (11:44 +0100)
commitf677bb150c2f7b96ebcd377cd722e9d2649e9400
tree7887f94189f6ea7d55a879564f889e3983674a13
parentb1ac9487c824a212f3b5bb80df5ac578243b0e21
HID: logitech-hidpp: detect HID++ 2.0 errors too

Devices speaking HID++ 2.0 report a different error code (0xff). Detect
these errors too to avoid 5 second delays when the device reports an
error. Caught by... well, a bug in the QEMU emulation of this receiver.

Renamed fap to rap for HID++ 1.0 errors because it is more logical,
it has no functional difference.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-hidpp.c