]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/linux/input.h
mm/hotplug: invalid PFNs from pfn_to_online_page()
[mirror_ubuntu-bionic-kernel.git] / include / linux / input.h
index 7c7516eb7d76c64071e51c199fdb0fd0f4e3c934..38cd0ea72c376e0363f05e73683b2bea2d1a99fa 100644 (file)
@@ -42,6 +42,7 @@ struct input_value {
  * @phys: physical path to the device in the system hierarchy
  * @uniq: unique identification code for the device (if device has it)
  * @id: id of the device (struct input_id)
+ * @flags: input device flags (SYNTHETIC, etc.)
  * @propbit: bitmap of device properties and quirks
  * @evbit: bitmap of types of events supported by the device (EV_KEY,
  *     EV_REL, etc.)
@@ -124,6 +125,8 @@ struct input_dev {
        const char *uniq;
        struct input_id id;
 
+       unsigned int flags;
+
        unsigned long propbit[BITS_TO_LONGS(INPUT_PROP_CNT)];
 
        unsigned long evbit[BITS_TO_LONGS(EV_CNT)];
@@ -190,6 +193,8 @@ struct input_dev {
 };
 #define to_input_dev(d) container_of(d, struct input_dev, dev)
 
+#define        INPUTDEV_FLAGS_SYNTHETIC        0x000000001
+
 /*
  * Verify that we are in sync with input_device_id mod_devicetable.h #defines
  */