HID: don't grab devices with no input
authorJiri Slaby <jirislaby@gmail.com>
Fri, 14 Nov 2008 11:03:47 +0000 (12:03 +0100)
committerJiri Kosina <jkosina@suse.cz>
Fri, 14 Nov 2008 13:10:01 +0000 (14:10 +0100)
commit131d3a7a009d56a96cc7117b4e9d0c90c2e2a1dc
tree9427510362e77d167d2646a7e5e25438dc0e2d23
parent62a56582e01b1c5139b235004548e233201df9aa
HID: don't grab devices with no input

Some devices have no input interrupt endpoint. These won't be handled
by usbhid, but currently they are not refused and reside on hid bus.

Perform this checking earlier so that we refuse to control such
a device early enough (and not pass it to the hid bus at all).

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-core.c