diff options
author | Jiri Kosina <jkosina@suse.cz> | 2007-11-22 09:18:18 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-01-28 08:51:20 -0500 |
commit | 10bd065facb2594bd508597ef464d401b212f379 (patch) | |
tree | 3e3b9a2ff38f09219e6c6ad5e0a76c8753e9c3db /include/linux/hid.h | |
parent | 8dcd5afabffe7c7428323b6f083c2ec70129b459 (diff) |
HID: refactor mapping to input subsystem for quirky devices
Currently, the handling of mapping between hid and input for devices
that don't conform to HUT 1.12 specification is very messy -- no per-device
handling, no blacklists, conditions on idVendor and idProduct placed
all over the code.
This patch moves all the device-specific input mapping to a separate
file, and introduces a blacklist-style handling for non-standard
device-specific mappings.
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r-- | include/linux/hid.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index c67eeb516040..cd5d562b1b7c 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
@@ -524,6 +524,7 @@ extern void hidinput_disconnect(struct hid_device *); | |||
524 | int hid_set_field(struct hid_field *, unsigned, __s32); | 524 | int hid_set_field(struct hid_field *, unsigned, __s32); |
525 | int hid_input_report(struct hid_device *, int type, u8 *, int, int); | 525 | int hid_input_report(struct hid_device *, int type, u8 *, int, int); |
526 | int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field); | 526 | int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field); |
527 | int hidinput_mapping_quirks(struct hid_usage *, struct input_dev *, unsigned long *, int *); | ||
527 | void hid_input_field(struct hid_device *hid, struct hid_field *field, __u8 *data, int interrupt); | 528 | void hid_input_field(struct hid_device *hid, struct hid_field *field, __u8 *data, int interrupt); |
528 | void hid_output_report(struct hid_report *report, __u8 *data); | 529 | void hid_output_report(struct hid_report *report, __u8 *data); |
529 | void hid_free_device(struct hid_device *device); | 530 | void hid_free_device(struct hid_device *device); |