1
0
forked from drath/libratbag

Revert "hidraw: add a workaround for the logitech receivers"

This reverts commit 5ce5e8afec.

fixed due to f92674df1c "hidraw: make sure we're comparing products
of the same int type"

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
Benjamin Tissoires
2015-08-20 12:16:23 -04:00
parent 9df3cd4128
commit 7818a0c08b

View File

@@ -65,18 +65,9 @@ ratbag_open_hidraw(struct ratbag_device *ratbag)
/* Check if the device actually matches the input node */
if (hid_id.bustype != ratbag->ids.bustype ||
hid_id.vendor != ratbag->ids.vendor) {
errno -EINVAL;
goto err;
}
/* On the Logitech receiver, the hid device has the pid of the
* receiver, not of the actual device */
if (hid_id.product != ratbag->ids.product &&
(hid_id.vendor == USB_VENDOR_ID_LOGITECH &&
hid_id.product != USB_DEVICE_ID_UNIFYING_RECEIVER &&
hid_id.product != USB_DEVICE_ID_UNIFYING_RECEIVER2)) {
errno = -EINVAL;
hid_id.vendor != ratbag->ids.vendor ||
hid_id.product != ratbag->ids.product) {
errno = EINVAL;
goto err;
}