diff options
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/Kconfig | 7 | ||||
-rw-r--r-- | drivers/hid/Makefile | 1 | ||||
-rw-r--r-- | drivers/hid/hid-core.c | 1 | ||||
-rw-r--r-- | drivers/hid/hid-ids.h | 3 | ||||
-rw-r--r-- | drivers/hid/hid-ortek.c | 56 |
5 files changed, 68 insertions, 0 deletions
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 38e969207636..139668d6382a 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig | |||
@@ -218,6 +218,13 @@ config HID_NTRIG | |||
218 | ---help--- | 218 | ---help--- |
219 | Support for N-Trig touch screen. | 219 | Support for N-Trig touch screen. |
220 | 220 | ||
221 | config HID_ORTEK | ||
222 | tristate "Ortek" if EMBEDDED | ||
223 | depends on USB_HID | ||
224 | default !EMBEDDED | ||
225 | ---help--- | ||
226 | Support for Ortek WKB-2000 wireless keyboard + mouse trackpad. | ||
227 | |||
221 | config HID_PANTHERLORD | 228 | config HID_PANTHERLORD |
222 | tristate "Pantherlord support" if EMBEDDED | 229 | tristate "Pantherlord support" if EMBEDDED |
223 | depends on USB_HID | 230 | depends on USB_HID |
diff --git a/drivers/hid/Makefile b/drivers/hid/Makefile index 15541c47b172..b62d4b3afdc2 100644 --- a/drivers/hid/Makefile +++ b/drivers/hid/Makefile | |||
@@ -38,6 +38,7 @@ obj-$(CONFIG_HID_LOGITECH) += hid-logitech.o | |||
38 | obj-$(CONFIG_HID_MICROSOFT) += hid-microsoft.o | 38 | obj-$(CONFIG_HID_MICROSOFT) += hid-microsoft.o |
39 | obj-$(CONFIG_HID_MONTEREY) += hid-monterey.o | 39 | obj-$(CONFIG_HID_MONTEREY) += hid-monterey.o |
40 | obj-$(CONFIG_HID_NTRIG) += hid-ntrig.o | 40 | obj-$(CONFIG_HID_NTRIG) += hid-ntrig.o |
41 | obj-$(CONFIG_HID_ORTEK) += hid-ortek.o | ||
41 | obj-$(CONFIG_HID_QUANTA) += hid-quanta.o | 42 | obj-$(CONFIG_HID_QUANTA) += hid-quanta.o |
42 | obj-$(CONFIG_HID_PANTHERLORD) += hid-pl.o | 43 | obj-$(CONFIG_HID_PANTHERLORD) += hid-pl.o |
43 | obj-$(CONFIG_HID_PETALYNX) += hid-petalynx.o | 44 | obj-$(CONFIG_HID_PETALYNX) += hid-petalynx.o |
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 116a3460e75a..7fe509879fe3 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c | |||
@@ -1337,6 +1337,7 @@ static const struct hid_device_id hid_blacklist[] = { | |||
1337 | { HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_WIRELESS_OPTICAL_DESKTOP_3_0) }, | 1337 | { HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_WIRELESS_OPTICAL_DESKTOP_3_0) }, |
1338 | { HID_USB_DEVICE(USB_VENDOR_ID_MONTEREY, USB_DEVICE_ID_GENIUS_KB29E) }, | 1338 | { HID_USB_DEVICE(USB_VENDOR_ID_MONTEREY, USB_DEVICE_ID_GENIUS_KB29E) }, |
1339 | { HID_USB_DEVICE(USB_VENDOR_ID_NTRIG, USB_DEVICE_ID_NTRIG_TOUCH_SCREEN) }, | 1339 | { HID_USB_DEVICE(USB_VENDOR_ID_NTRIG, USB_DEVICE_ID_NTRIG_TOUCH_SCREEN) }, |
1340 | { HID_USB_DEVICE(USB_VENDOR_ID_ORTEK, USB_DEVICE_ID_ORTEK_WKB2000) }, | ||
1340 | { HID_USB_DEVICE(USB_VENDOR_ID_PETALYNX, USB_DEVICE_ID_PETALYNX_MAXTER_REMOTE) }, | 1341 | { HID_USB_DEVICE(USB_VENDOR_ID_PETALYNX, USB_DEVICE_ID_PETALYNX_MAXTER_REMOTE) }, |
1341 | { HID_USB_DEVICE(USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH) }, | 1342 | { HID_USB_DEVICE(USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH) }, |
1342 | { HID_USB_DEVICE(USB_VENDOR_ID_SAMSUNG, USB_DEVICE_ID_SAMSUNG_IR_REMOTE) }, | 1343 | { HID_USB_DEVICE(USB_VENDOR_ID_SAMSUNG, USB_DEVICE_ID_SAMSUNG_IR_REMOTE) }, |
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 064c09a221ef..6c38359385a9 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h | |||
@@ -363,6 +363,9 @@ | |||
363 | #define USB_VENDOR_ID_ONTRAK 0x0a07 | 363 | #define USB_VENDOR_ID_ONTRAK 0x0a07 |
364 | #define USB_DEVICE_ID_ONTRAK_ADU100 0x0064 | 364 | #define USB_DEVICE_ID_ONTRAK_ADU100 0x0064 |
365 | 365 | ||
366 | #define USB_VENDOR_ID_ORTEK 0x05a4 | ||
367 | #define USB_DEVICE_ID_ORTEK_WKB2000 0x2000 | ||
368 | |||
366 | #define USB_VENDOR_ID_PANJIT 0x134c | 369 | #define USB_VENDOR_ID_PANJIT 0x134c |
367 | 370 | ||
368 | #define USB_VENDOR_ID_PANTHERLORD 0x0810 | 371 | #define USB_VENDOR_ID_PANTHERLORD 0x0810 |
diff --git a/drivers/hid/hid-ortek.c b/drivers/hid/hid-ortek.c new file mode 100644 index 000000000000..aa9a960f73a4 --- /dev/null +++ b/drivers/hid/hid-ortek.c | |||
@@ -0,0 +1,56 @@ | |||
1 | /* | ||
2 | * HID driver for Ortek 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 | ||
11 | * under the terms of the GNU General Public License as published by the Free | ||
12 | * Software Foundation; either version 2 of the License, or (at your option) | ||
13 | * any later version. | ||
14 | */ | ||
15 | |||
16 | #include <linux/device.h> | ||
17 | #include <linux/hid.h> | ||
18 | #include <linux/module.h> | ||
19 | |||
20 | #include "hid-ids.h" | ||
21 | |||
22 | static void ortek_report_fixup(struct hid_device *hdev, __u8 *rdesc, | ||
23 | unsigned int rsize) | ||
24 | { | ||
25 | if (rsize >= 56 && rdesc[54] == 0x25 && rdesc[55] == 0x01) { | ||
26 | dev_info(&hdev->dev, "Fixing up Ortek WKB-2000 " | ||
27 | "report descriptor.\n"); | ||
28 | rdesc[55] = 0x92; | ||
29 | } | ||
30 | } | ||
31 | |||
32 | static const struct hid_device_id ortek_devices[] = { | ||
33 | { HID_USB_DEVICE(USB_VENDOR_ID_ORTEK, USB_DEVICE_ID_ORTEK_WKB2000) }, | ||
34 | { } | ||
35 | }; | ||
36 | MODULE_DEVICE_TABLE(hid, ortek_devices); | ||
37 | |||
38 | static struct hid_driver ortek_driver = { | ||
39 | .name = "ortek", | ||
40 | .id_table = ortek_devices, | ||
41 | .report_fixup = ortek_report_fixup | ||
42 | }; | ||
43 | |||
44 | static int __init ortek_init(void) | ||
45 | { | ||
46 | return hid_register_driver(&ortek_driver); | ||
47 | } | ||
48 | |||
49 | static void __exit ortek_exit(void) | ||
50 | { | ||
51 | hid_unregister_driver(&ortek_driver); | ||
52 | } | ||
53 | |||
54 | module_init(ortek_init); | ||
55 | module_exit(ortek_exit); | ||
56 | MODULE_LICENSE("GPL"); | ||