dt-bindings: input: adopt Linux gpio-keys binding constants
authorPeter Robinson <pbrobinson@gmail.com>
Mon, 20 Apr 2020 19:27:33 +0000 (20:27 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Sun, 31 May 2020 12:44:23 +0000 (20:44 +0800)
Sync the gpio-keys input bindings from linux 5.7-rc1.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
include/dt-bindings/input/gpio-keys.h [new file with mode: 0644]

diff --git a/include/dt-bindings/input/gpio-keys.h b/include/dt-bindings/input/gpio-keys.h
new file mode 100644 (file)
index 0000000..8962df7
--- /dev/null
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * This header provides constants for gpio keys bindings.
+ */
+
+#ifndef _DT_BINDINGS_GPIO_KEYS_H
+#define _DT_BINDINGS_GPIO_KEYS_H
+
+#define EV_ACT_ANY             0x00    /* asserted or deasserted */
+#define EV_ACT_ASSERTED                0x01    /* asserted */
+#define EV_ACT_DEASSERTED      0x02    /* deasserted */
+
+#endif /* _DT_BINDINGS_GPIO_KEYS_H */