diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-05-16 05:49:22 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-10-14 17:50:50 -0400 |
commit | 02ae9a1a8bc1d08a8fd5f6a0b8bde400b0f891b9 (patch) | |
tree | a7584d1e9bcabdd22e63c12326e696c94d38dad8 /include | |
parent | 8c19a51591d06f5226499972567f528cf6066bb7 (diff) |
HID: add compat support
Add compat option to hid code to allow loading of all modules on
systems which don't allow autoloading because of old userspace.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/hid.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 75cc1531dd84..60e44e6b86e6 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
@@ -790,10 +790,23 @@ dbg_hid(const char *fmt, ...) | |||
790 | return 0; | 790 | return 0; |
791 | } | 791 | } |
792 | #define dbg_hid_line dbg_hid | 792 | #define dbg_hid_line dbg_hid |
793 | #endif | 793 | #endif /* HID_DEBUG */ |
794 | 794 | ||
795 | #define err_hid(format, arg...) printk(KERN_ERR "%s: " format "\n" , \ | 795 | #define err_hid(format, arg...) printk(KERN_ERR "%s: " format "\n" , \ |
796 | __FILE__ , ## arg) | 796 | __FILE__ , ## arg) |
797 | #endif | 797 | #endif /* HID_FF */ |
798 | |||
799 | #ifdef CONFIG_HID_COMPAT | ||
800 | #define HID_COMPAT_LOAD_DRIVER(name) \ | ||
801 | void hid_compat_##name(void) { } \ | ||
802 | EXPORT_SYMBOL(hid_compat_##name) | ||
803 | #else | ||
804 | #define HID_COMPAT_LOAD_DRIVER(name) | ||
805 | #endif /* HID_COMPAT */ | ||
806 | #define HID_COMPAT_CALL_DRIVER(name) do { \ | ||
807 | extern void hid_compat_##name(void); \ | ||
808 | hid_compat_##name(); \ | ||
809 | } while (0) | ||
810 | |||
798 | #endif | 811 | #endif |
799 | 812 | ||