]> git.baikalelectronics.ru Git - kernel.git/commit
HID: core: move the list of ignored devices in hid-quirks.c
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 20 Nov 2017 10:48:43 +0000 (11:48 +0100)
committerJiri Kosina <jkosina@suse.cz>
Tue, 21 Nov 2017 10:14:48 +0000 (11:14 +0100)
commit8c73e18209e22147724e5061657b83187082dbf2
treef14a645a26e3911ae1940f0a7dadeb7b0ca79545
parent2483952966e07b2625f21753d65e3b7dbe4f337a
HID: core: move the list of ignored devices in hid-quirks.c

Better having all the devices quirks in one place.

Note that this change introduces an initial lookup for the device in
hid_gets_squirk(), which should not theoretically be required, but which
actually allows to not have to reparse the list of ignored devices
if we call hid_lookup_quirks twice.

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-quirks.c