]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/hid.h
HID: add compat support
[linux-2.6-omap-h63xx.git] / include / linux / hid.h
index 75cc1531dd84f8f0673b3c5d20c5a8169325e310..60e44e6b86e6311866e024bd8c8ab31cbd789cba 100644 (file)
@@ -790,10 +790,23 @@ dbg_hid(const char *fmt, ...)
        return 0;
 }
 #define dbg_hid_line dbg_hid
-#endif
+#endif /* HID_DEBUG */
 
 #define err_hid(format, arg...) printk(KERN_ERR "%s: " format "\n" , \
                __FILE__ , ## arg)
-#endif
+#endif /* HID_FF */
+
+#ifdef CONFIG_HID_COMPAT
+#define HID_COMPAT_LOAD_DRIVER(name)   \
+void hid_compat_##name(void) { }       \
+EXPORT_SYMBOL(hid_compat_##name)
+#else
+#define HID_COMPAT_LOAD_DRIVER(name)
+#endif /* HID_COMPAT */
+#define HID_COMPAT_CALL_DRIVER(name)   do {    \
+       extern void hid_compat_##name(void);    \
+       hid_compat_##name();                    \
+} while (0)
+
 #endif