summaryrefslogtreecommitdiff
path: root/include/linux/hiddev.h
diff options
context:
space:
mode:
authorVojtech Pavlik <vojtech@suse.cz>2002-07-15 03:37:47 -0700
committerVojtech Pavlik <vojtech@suse.cz>2002-07-15 03:37:47 -0700
commit2fcd00c2f6da48528ff0188676f4e91fea2a6795 (patch)
treefc54bbf286c317cfda690c0513d189ad8ae2687f /include/linux/hiddev.h
parent6fa91667b6f5555c7ad5f065d72cb28e5ee9df4e (diff)
[PATCH] A cleanup of Paul's 2.5 hiddev update.
Get rid of #ifdefs in hid-core again. (For you, Greg.) Move the uref generation code from hid-core to hiddev to make things cleaner.
Diffstat (limited to 'include/linux/hiddev.h')
-rw-r--r--include/linux/hiddev.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/hiddev.h b/include/linux/hiddev.h
index 05db98ccfdbb..0077b58559f5 100644
--- a/include/linux/hiddev.h
+++ b/include/linux/hiddev.h
@@ -202,13 +202,17 @@ struct hiddev_usage_ref {
#ifdef CONFIG_USB_HIDDEV
int hiddev_connect(struct hid_device *);
void hiddev_disconnect(struct hid_device *);
-void hiddev_hid_event(struct hid_device *, struct hiddev_usage_ref *ref);
+void hiddev_hid_event(struct hid_device *hid, struct hid_field *field,
+ struct hid_usage *usage, __s32 value);
+void hiddev_report_event(struct hid_device *hid, struct hid_report *report);
int __init hiddev_init(void);
void __exit hiddev_exit(void);
#else
static inline int hiddev_connect(struct hid_device *hid) { return -1; }
static inline void hiddev_disconnect(struct hid_device *hid) { }
-static inline void hiddev_event(struct hid_device *hid, unsigned int usage, int value) { }
+static inline void hiddev_hid_event(struct hid_device *hid, struct hid_field *field,
+ struct hid_usage *usage, __s32 value) { }
+static inline void hiddev_report_event(struct hid_device *hid, struct hid_report *report) { }
static inline int hiddev_init(void) { return 0; }
static inline void hiddev_exit(void) { }
#endif