13 #include <linux/device.h>
14 #include <linux/hid.h>
15 #include <linux/module.h>
33 static __u8 holtek_kbd_rdesc_fixed[] = {
113 if (intf->cur_altsetting->desc.bInterfaceNumber == 1) {
114 rdesc = holtek_kbd_rdesc_fixed;
115 *rsize =
sizeof(holtek_kbd_rdesc_fixed);
120 static int holtek_kbd_input_event(
struct input_dev *
dev,
unsigned int type,
124 struct hid_device *hid = input_get_drvdata(dev);
130 struct hid_device *boot_hid = usb_get_intfdata(boot_interface);
134 return boot_hid_input->
input->event(boot_hid_input->
input, type, code,
138 static int holtek_kbd_probe(
struct hid_device *hdev,
142 int ret = hid_parse(hdev);
147 if (!ret && intf->cur_altsetting->desc.bInterfaceNumber == 1) {
150 hidinput->
input->event = holtek_kbd_input_event;
164 static struct hid_driver holtek_kbd_driver = {
165 .name =
"holtek_kbd",
166 .id_table = holtek_kbd_devices,
167 .report_fixup = holtek_kbd_report_fixup,
168 .probe = holtek_kbd_probe
171 static int __init holtek_kbd_init(
void)
176 static void __exit holtek_kbd_exit(
void)