diff mbox

[RESEND] input: dts: Add commonly used event types

Message ID 1395165888-17434-1-git-send-email-shc_work@mail.ru (mailing list archive)
State New, archived
Headers show

Commit Message

Alexander Shiyan March 18, 2014, 6:04 p.m. UTC
Patch adds commonly used event types (EV_KEY and EV_SW) to
devicetree bindings header for input subsystem.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 include/dt-bindings/input/input.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Dmitry Torokhov March 28, 2014, 4:43 p.m. UTC | #1
On Tue, Mar 18, 2014 at 10:04:47PM +0400, Alexander Shiyan wrote:
> Patch adds commonly used event types (EV_KEY and EV_SW) to
> devicetree bindings header for input subsystem.
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> ---
>  include/dt-bindings/input/input.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/include/dt-bindings/input/input.h b/include/dt-bindings/input/input.h
> index 042e7b3..3a141d92 100644
> --- a/include/dt-bindings/input/input.h
> +++ b/include/dt-bindings/input/input.h
> @@ -9,6 +9,9 @@
>  #ifndef _DT_BINDINGS_INPUT_INPUT_H
>  #define _DT_BINDINGS_INPUT_INPUT_H
>  
> +#define EV_KEY			0x01
> +#define EV_SW			0x05
> +
>  #define KEY_RESERVED		0
>  #define KEY_ESC			1
>  #define KEY_1			2
> -- 
> 1.8.3.2
> 

This I believe should go through device tree.
diff mbox

Patch

diff --git a/include/dt-bindings/input/input.h b/include/dt-bindings/input/input.h
index 042e7b3..3a141d92 100644
--- a/include/dt-bindings/input/input.h
+++ b/include/dt-bindings/input/input.h
@@ -9,6 +9,9 @@ 
 #ifndef _DT_BINDINGS_INPUT_INPUT_H
 #define _DT_BINDINGS_INPUT_INPUT_H
 
+#define EV_KEY			0x01
+#define EV_SW			0x05
+
 #define KEY_RESERVED		0
 #define KEY_ESC			1
 #define KEY_1			2