aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hid.h
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2008-10-22 08:45:11 -0400
committerJiri Kosina <jkosina@suse.cz>2008-10-22 08:45:11 -0400
commita73a63701f8f23e70674b3c5e367a0a726c18468 (patch)
tree7ea08c39cdef5c53986898b3ea66a8f531725447 /include/linux/hid.h
parentac2d98998c32fcdc8d8919b7a4536a7945fd0422 (diff)
HID: add hid_type to general hid struct
Add type to the hid structure to distinguish to which device type (now only mouse) we are talking to. Needed for per device type ignore list support. Note: this patch leaves the type as unknown for bluetooth devices, there is not support for this in the hidp code. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r--include/linux/hid.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h
index f13bca2dd53b..5355ca4b939e 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -417,6 +417,11 @@ struct hid_input {
417 struct input_dev *input; 417 struct input_dev *input;
418}; 418};
419 419
420enum hid_type {
421 HID_TYPE_OTHER = 0,
422 HID_TYPE_USBMOUSE
423};
424
420struct hid_driver; 425struct hid_driver;
421struct hid_ll_driver; 426struct hid_ll_driver;
422 427
@@ -431,6 +436,7 @@ struct hid_device { /* device report descriptor */
431 __u32 vendor; /* Vendor ID */ 436 __u32 vendor; /* Vendor ID */
432 __u32 product; /* Product ID */ 437 __u32 product; /* Product ID */
433 __u32 version; /* HID version */ 438 __u32 version; /* HID version */
439 enum hid_type type; /* device type (mouse, kbd, ...) */
434 unsigned country; /* HID country */ 440 unsigned country; /* HID country */
435 struct hid_report_enum report_enum[HID_REPORT_TYPES]; 441 struct hid_report_enum report_enum[HID_REPORT_TYPES];
436 442