diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-05-19 13:50:01 (GMT) |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-10-14 21:50:47 (GMT) |
commit | e8c84f9a5f06912c94c38961096c994da3890a2e (patch) | |
tree | 4b53131a3dc0ec39f82d33230df76764be9acd07 /include/linux | |
parent | 7591103c08abade60aeddb432ed0686ddd0de1c6 (diff) | |
download | linux-fsl-qoriq-e8c84f9a5f06912c94c38961096c994da3890a2e.tar.xz |
modpost: add support for hid
Generate aliases for hid device modules to support autoloading.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/hid.h | 1 | ||||
-rw-r--r-- | include/linux/mod_devicetable.h | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index ac4e678..b7a1776 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -67,6 +67,7 @@ #include <linux/types.h> #include <linux/slab.h> #include <linux/list.h> +#include <linux/mod_devicetable.h> /* hid_device_id */ #include <linux/timer.h> #include <linux/workqueue.h> #include <linux/input.h> diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 3481a7d..d6a3f47 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -131,6 +131,16 @@ struct usb_device_id { #define USB_DEVICE_ID_MATCH_INT_SUBCLASS 0x0100 #define USB_DEVICE_ID_MATCH_INT_PROTOCOL 0x0200 +#define HID_ANY_ID (~0) + +struct hid_device_id { + __u16 bus; + __u32 vendor; + __u32 product; + kernel_ulong_t driver_data + __attribute__((aligned(sizeof(kernel_ulong_t)))); +}; + /* s390 CCW devices */ struct ccw_device_id { __u16 match_flags; /* which fields to match against */ |