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)
commitf745d162f469a4b1e805779a8b0d9157100c813c
treef14a645a26e3911ae1940f0a7dadeb7b0ca79545
parent6e65d9d5492f370dd0e5418bdd38265b2ca74f88
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