Commit 2eb5dc30 authored by Paul Walmsley's avatar Paul Walmsley Committed by Jiri Kosina

USB HID: encapsulate quirk handling into hid-quirks.c

Move the USB_VENDOR* and USB_DEVICE* defines and the hid_blacklist[]
array there from hid-core.c.  Add
hid-quirks.c:usbhid_lookup_any_quirks() to return quirk information to
hid-core.c.  Convert __u32, __u16 types to u32, u16.
Signed-off-by: default avatarPaul Walmsley <paul@booyaka.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 4d5a1be9
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# #
# Multipart objects. # Multipart objects.
usbhid-objs := hid-core.o usbhid-objs := hid-core.o hid-quirks.o
# Optional parts of multipart objects. # Optional parts of multipart objects.
......
This diff is collapsed.
This diff is collapsed.
...@@ -495,6 +495,8 @@ void hid_output_report(struct hid_report *report, __u8 *data); ...@@ -495,6 +495,8 @@ void hid_output_report(struct hid_report *report, __u8 *data);
void hid_free_device(struct hid_device *device); void hid_free_device(struct hid_device *device);
struct hid_device *hid_parse_report(__u8 *start, unsigned size); struct hid_device *hid_parse_report(__u8 *start, unsigned size);
u32 usbhid_lookup_quirk(const u16 idVendor, const u16 idProduct);
#ifdef CONFIG_HID_FF #ifdef CONFIG_HID_FF
int hid_ff_init(struct hid_device *hid); int hid_ff_init(struct hid_device *hid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment