]> 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)
commit7abbce7d2ddfacc8b228855aa04a133e9cce42dd
treef14a645a26e3911ae1940f0a7dadeb7b0ca79545
parentc27b4ecdd6dfa535395f9dd1ee574428b203a4d3
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