aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/usbhid/hid-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/usbhid/hid-core.c')
-rw-r--r--drivers/hid/usbhid/hid-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c
index 9cd61a52e9e3..245aef0de8f2 100644
--- a/drivers/hid/usbhid/hid-core.c
+++ b/drivers/hid/usbhid/hid-core.c
@@ -1143,6 +1143,7 @@ static int usbhid_probe(struct usb_interface *intf, const struct usb_device_id *
1143 hid->vendor = le16_to_cpu(dev->descriptor.idVendor); 1143 hid->vendor = le16_to_cpu(dev->descriptor.idVendor);
1144 hid->product = le16_to_cpu(dev->descriptor.idProduct); 1144 hid->product = le16_to_cpu(dev->descriptor.idProduct);
1145 hid->name[0] = 0; 1145 hid->name[0] = 0;
1146 hid->quirks = usbhid_lookup_quirk(hid->vendor, hid->product);
1146 if (intf->cur_altsetting->desc.bInterfaceProtocol == 1147 if (intf->cur_altsetting->desc.bInterfaceProtocol ==
1147 USB_INTERFACE_PROTOCOL_MOUSE) 1148 USB_INTERFACE_PROTOCOL_MOUSE)
1148 hid->type = HID_TYPE_USBMOUSE; 1149 hid->type = HID_TYPE_USBMOUSE;