diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2015-12-01 10:26:24 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-12-02 14:51:00 +0100 |
commit | 2078665a7e12df5d8ab4d254eac69e15959271e6 (patch) | |
tree | c1330fec14466778c0598c14416945bf60206167 /drivers/hid | |
parent | 0d51571d51ea8eb72b903b2a4f3f43a38e7bc718 (diff) |
HID: lg: restrict filtering out of first interface to G29 only
Looks like 29fae1c85 ("HID: logitech: Add support for G29") was a little
bit aggressive and broke other devices.
Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=108121
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-lg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index c20ac76c0a8c..c690fae02cf8 100644 --- a/drivers/hid/hid-lg.c +++ b/drivers/hid/hid-lg.c @@ -665,8 +665,9 @@ static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id) struct lg_drv_data *drv_data; int ret; - /* Only work with the 1st interface (G29 presents multiple) */ - if (iface_num != 0) { + /* G29 only work with the 1st interface */ + if ((hdev->product == USB_DEVICE_ID_LOGITECH_G29_WHEEL) && + (iface_num != 0)) { dbg_hid("%s: ignoring ifnum %d\n", __func__, iface_num); return -ENODEV; } |