mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
USB HID: add support for dynamically-created quirks
Add internal support for dynamically-allocated HID quirks, "dquirks" (for "dynamic quirks"). Includes several functions to add/modify quirks from the list. This code is used by the next patch to implement quirk modification upon module load. Signed-off-by: Paul Walmsley <paul@booyaka.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
8222fbe67c
commit
8cef908235
2 changed files with 151 additions and 15 deletions
|
@ -496,6 +496,7 @@ void hid_free_device(struct hid_device *device);
|
|||
struct hid_device *hid_parse_report(__u8 *start, unsigned size);
|
||||
|
||||
u32 usbhid_lookup_quirk(const u16 idVendor, const u16 idProduct);
|
||||
int usbhid_modify_dquirk(const u16 idVendor, const u16 idProduct, const u32 quirks);
|
||||
|
||||
#ifdef CONFIG_HID_FF
|
||||
int hid_ff_init(struct hid_device *hid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue