HID: core: rewrite the hid-generic automatic unbind
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 8 Dec 2017 14:29:44 +0000 (15:29 +0100)
committerJiri Kosina <jkosina@suse.cz>
Tue, 6 Mar 2018 15:00:51 +0000 (16:00 +0100)
commitc17a7476e4c41884d82e3675c25ceae982c07a63
tree577796c9bda4e5663207717afdfd79b054764b9c
parent001fab49dd4fcf64b1b8ccecb8656baa3f3f1a9a
HID: core: rewrite the hid-generic automatic unbind

We actually can have the unbind/rebind logic in hid-core.c, leaving
only the match function in hid-generic.

This makes hid-generic simpler and the whole logic simpler too.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c
drivers/hid/hid-generic.c
include/linux/hid.h