hid-ortek.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) | hid-ortek.c (270fdc0748bd3f7b625caff985f2fcf8e2185ec7) |
---|---|
1/* | 1/* |
2 * HID driver for Ortek WKB-2000 (wireless keyboard + mouse trackpad). | 2 * HID driver for Ortek PKB-1700/WKB-2000 (wireless keyboard + mouse trackpad). |
3 * Fixes LogicalMaximum error in USB report description, see 4 * http://bugzilla.kernel.org/show_bug.cgi?id=14787 5 * 6 * Copyright (c) 2010 Johnathon Harris <jmharris@gmail.com> 7 */ 8 9/* 10 * This program is free software; you can redistribute it and/or modify it --- 14 unchanged lines hidden (view full) --- 25 if (*rsize >= 56 && rdesc[54] == 0x25 && rdesc[55] == 0x01) { 26 hid_info(hdev, "Fixing up Ortek WKB-2000 report descriptor\n"); 27 rdesc[55] = 0x92; 28 } 29 return rdesc; 30} 31 32static const struct hid_device_id ortek_devices[] = { | 3 * Fixes LogicalMaximum error in USB report description, see 4 * http://bugzilla.kernel.org/show_bug.cgi?id=14787 5 * 6 * Copyright (c) 2010 Johnathon Harris <jmharris@gmail.com> 7 */ 8 9/* 10 * This program is free software; you can redistribute it and/or modify it --- 14 unchanged lines hidden (view full) --- 25 if (*rsize >= 56 && rdesc[54] == 0x25 && rdesc[55] == 0x01) { 26 hid_info(hdev, "Fixing up Ortek WKB-2000 report descriptor\n"); 27 rdesc[55] = 0x92; 28 } 29 return rdesc; 30} 31 32static const struct hid_device_id ortek_devices[] = { |
33 { HID_USB_DEVICE(USB_VENDOR_ID_ORTEK, USB_DEVICE_ID_ORTEK_PKB1700) }, |
|
33 { HID_USB_DEVICE(USB_VENDOR_ID_ORTEK, USB_DEVICE_ID_ORTEK_WKB2000) }, 34 { } 35}; 36MODULE_DEVICE_TABLE(hid, ortek_devices); 37 38static struct hid_driver ortek_driver = { 39 .name = "ortek", 40 .id_table = ortek_devices, --- 16 unchanged lines hidden --- | 34 { HID_USB_DEVICE(USB_VENDOR_ID_ORTEK, USB_DEVICE_ID_ORTEK_WKB2000) }, 35 { } 36}; 37MODULE_DEVICE_TABLE(hid, ortek_devices); 38 39static struct hid_driver ortek_driver = { 40 .name = "ortek", 41 .id_table = ortek_devices, --- 16 unchanged lines hidden --- |