Commit 281213ec authored by Hanna V. Linder's avatar Hanna V. Linder Committed by Greg Kroah-Hartman

[PATCH] USB: input class hookup to existing support

Results in this tree /sys/class/input with a combined keyboard/mouse
USB device:

[root@w-hlinder2 input]# tree /sys/class/input
/sys/class/input
|-- devices
|   |-- 0 -> ../../../devices/pci0/00:0f.2/usb1/1-1/1-1.1/1-1.1:0
|   |-- 1 -> ../../../devices/pci0/00:0f.2/usb1/1-1/1-1.1/1-1.1:1
|   `-- 2 -> ../../../devices/pci0/00:0f.2/usb1/1-1/1-1.2/1-1.2:0
|-- drivers
|   `-- usb:hid -> ../../../bus/usb/drivers/hid
`-- mouse
parent edad54dc
......@@ -1664,6 +1664,9 @@ static struct usb_driver hid_driver = {
.probe = hid_probe,
.disconnect = hid_disconnect,
.id_table = hid_usb_ids,
.driver = {
.devclass = &input_devclass,
},
};
static int __init hid_init(void)
......
......@@ -359,6 +359,9 @@ static struct usb_driver usb_kbd_driver = {
.probe = usb_kbd_probe,
.disconnect = usb_kbd_disconnect,
.id_table = usb_kbd_id_table,
.driver = {
.devclass = &input_devclass,
},
};
static int __init usb_kbd_init(void)
......
......@@ -242,6 +242,9 @@ static struct usb_driver usb_mouse_driver = {
.probe = usb_mouse_probe,
.disconnect = usb_mouse_disconnect,
.id_table = usb_mouse_id_table,
.driver = {
.devclass = &input_devclass,
},
};
static int __init usb_mouse_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment