diff options
author | Jiri Kosina <jkosina@suse.cz> | 2006-12-08 12:41:10 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-12-08 13:43:15 -0500 |
commit | aa938f7974b82cfd9ee955031987344f332b7c77 (patch) | |
tree | 21198b8aa8a4c3be76def4b57968dae816753846 /drivers/hid | |
parent | 4916b3a57fc94664677d439b911b8aaf86c7ec23 (diff) |
[PATCH] Generic HID layer - hiddev
- hiddev is USB-only (agreed with Marcel Holtmann that Bluetooth currently
doesn't need it, and future planned interface (rawhid) will be more flexible
and usable)
- both HID and USB-hid can be now compiled as modules (wasn't possible before
hiddev was fully separated from generic HID layer)
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 8474a7923322..1dd9e4f0df1e 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c | |||
@@ -819,8 +819,8 @@ static void hid_process_event(struct hid_device *hid, struct hid_field *field, s | |||
819 | hid_dump_input(usage, value); | 819 | hid_dump_input(usage, value); |
820 | if (hid->claimed & HID_CLAIMED_INPUT) | 820 | if (hid->claimed & HID_CLAIMED_INPUT) |
821 | hidinput_hid_event(hid, field, usage, value); | 821 | hidinput_hid_event(hid, field, usage, value); |
822 | if (hid->claimed & HID_CLAIMED_HIDDEV && interrupt) | 822 | if (hid->claimed & HID_CLAIMED_HIDDEV && interrupt && hid->hiddev_hid_event) |
823 | hiddev_hid_event(hid, field, usage, value); | 823 | hid->hiddev_hid_event(hid, field, usage, value); |
824 | } | 824 | } |
825 | 825 | ||
826 | /* | 826 | /* |
@@ -940,3 +940,5 @@ int hid_set_field(struct hid_field *field, unsigned offset, __s32 value) | |||
940 | } | 940 | } |
941 | EXPORT_SYMBOL_GPL(hid_set_field); | 941 | EXPORT_SYMBOL_GPL(hid_set_field); |
942 | 942 | ||
943 | MODULE_LICENSE(DRIVER_LICENSE); | ||
944 | |||