aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/input.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index b0e612dda0c..f7ac97d834f 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -805,6 +805,9 @@ struct ff_effect {
#define FF_MAX 0x7f
+#ifdef LINUX_MOD_DEVICETABLE_H
+/* We only want this if mod_devicetable.h has been included -- that's
+ either in kernel space, or in scripts/mod/file2alias.c */
struct input_device_id {
kernel_ulong_t flags;
@@ -823,6 +826,7 @@ struct input_device_id {
kernel_ulong_t driver_info;
};
+#endif
/*
* Structure for hotplug & device<->driver matching.