diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-09-02 14:00:05 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-09-04 12:12:53 +0200 |
commit | 39054a5afbb05f83aaa26f6cf55027e269744ba3 (patch) | |
tree | b73378ec6800b73d3928c58ea309fddf78311ff1 /include/linux | |
parent | 47ab1a2de42031021965b81cbab4f3b4c5696d07 (diff) | |
download | linux-39054a5afbb05f83aaa26f6cf55027e269744ba3.tar.gz linux-39054a5afbb05f83aaa26f6cf55027e269744ba3.tar.bz2 linux-39054a5afbb05f83aaa26f6cf55027e269744ba3.zip |
HID: move HID_REPORT_TYPES closer to the report-definitions
HID_REPORT_TYPES defines the number of available report-types. Move it
closer to the actualy definition of the report-types so we can see the
relation more clearly (and hopefully will never forget to update it).
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/hid.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index d50137691a78..729bf27aac8f 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -252,6 +252,8 @@ struct hid_item { #define HID_OUTPUT_REPORT 1 #define HID_FEATURE_REPORT 2 +#define HID_REPORT_TYPES 3 + /* * HID connect requests */ @@ -401,8 +403,6 @@ struct hid_report_enum { struct hid_report *report_id_hash[HID_MAX_IDS]; }; -#define HID_REPORT_TYPES 3 - #define HID_MIN_BUFFER_SIZE 64 /* make sure there is at least a packet size of space */ #define HID_MAX_BUFFER_SIZE 4096 /* 4kb */ #define HID_CONTROL_FIFO_SIZE 256 /* to init devices with >100 reports */ |