summaryrefslogtreecommitdiff
path: root/include/linux/hiddev.h
diff options
context:
space:
mode:
authorAdam Kropelin <akropel1@rochester.rr.com>2004-09-07 17:45:50 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-07 17:45:50 -0700
commitc9daeae66c9eea359c65210229b3962e66642a43 (patch)
tree1e95f6466d8adbe4f75c8a3902359a8da6df58f5 /include/linux/hiddev.h
parent38a3d44d195fb299a8182a1599e0bf8dc1c4047e (diff)
[PATCH] input: Eliminate hiddev.h dependency on hid.h
hiddev.h needs hid.h but doesn't include it. Since hid.h is private anyway just eliminate the need for it it in the first place. Signed-off-by: Adam Kropelin <akropel1@rochester.rr.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/hiddev.h')
-rw-r--r--include/linux/hiddev.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/hiddev.h b/include/linux/hiddev.h
index 75c1fa0d2189..695423da423e 100644
--- a/include/linux/hiddev.h
+++ b/include/linux/hiddev.h
@@ -128,10 +128,11 @@ struct hiddev_usage_ref {
/* hiddev_usage_ref_multi is used for sending multiple bytes to a control.
* It really manifests itself as setting the value of consecutive usages */
+#define HID_MAX_MULTI_USAGES 1024
struct hiddev_usage_ref_multi {
struct hiddev_usage_ref uref;
__u32 num_values;
- __s32 values[HID_MAX_USAGES];
+ __s32 values[HID_MAX_MULTI_USAGES];
};
/* FIELD_INDEX_NONE is returned in read() data from the kernel when flags
@@ -212,6 +213,11 @@ struct hiddev_usage_ref_multi {
* In-kernel definitions.
*/
+struct hid_device;
+struct hid_usage;
+struct hid_field;
+struct hid_report;
+
#ifdef CONFIG_USB_HIDDEV
int hiddev_connect(struct hid_device *);
void hiddev_disconnect(struct hid_device *);