Re: [PATCH v2 1/2] of: rework of_node_cmp() to support short and full node names

2016-01-13 Thread Yegor Yefremov
Hi Sascha, On Wed, Jan 13, 2016 at 4:50 PM, Sascha Hauer wrote: > Hi Yegor, > > On Tue, Jan 12, 2016 at 11:16:38AM +0100, yegorsli...@googlemail.com wrote: >> + * Compare node names using the length of the node in question >> + * and then check, if the in-tree node has '@' as next character. >> +

Re: [PATCH v2 1/2] of: rework of_node_cmp() to support short and full node names

2016-01-13 Thread Sascha Hauer
Hi Yegor, On Tue, Jan 12, 2016 at 11:16:38AM +0100, yegorsli...@googlemail.com wrote: > + * Compare node names using the length of the node in question > + * and then check, if the in-tree node has '@' as next character. > + * This way both short names like 'name' and full like 'name@1' will > + *

[PATCH 08/15] input: usb keyboard: convert to input framework

2016-01-13 Thread Sascha Hauer
Conert the USB keyboard over to the new input core as a first user. Signed-off-by: Sascha Hauer --- drivers/input/Kconfig | 1 + drivers/input/usb_kbd.c | 296 +--- 2 files changed, 55 insertions(+), 242 deletions(-) diff --git a/drivers/input/Kco

[PATCH] input core

2016-01-13 Thread Sascha Hauer
This series adds an input driver core and ports some input driver over to it. Currently the input drivers are written as console drivers. The problem with this is that we can only generate a character when a key is pressed, but we can't ask for the current state of a key. One very common usecase f

[PATCH 06/15] keymap: Add keymap for keys with shift pressed

2016-01-13 Thread Sascha Hauer
When converting keys to ascii for the console we also need the keymap with shift pressed. Signed-off-by: Sascha Hauer --- drivers/input/keymap.c | 82 include/input/keyboard.h | 1 + 2 files changed, 83 insertions(+) diff --git a/drivers/input

[PATCH 05/15] keymap: Add apostrophe, backslash and home

2016-01-13 Thread Sascha Hauer
Add some previously undefined keys. Signed-off-by: Sascha Hauer --- drivers/input/keymap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/keymap.c b/drivers/input/keymap.c index fdc04f7..73dd112 100644 --- a/drivers/input/keymap.c +++ b/drivers/input/keym

[PATCH 03/15] keymap: remove exotic and nonprintable keys

2016-01-13 Thread Sascha Hauer
We do not need these keys and they do not produce a usable result either. Signed-off-by: Sascha Hauer --- drivers/input/keymap.c | 49 - 1 file changed, 49 deletions(-) diff --git a/drivers/input/keymap.c b/drivers/input/keymap.c index eb3d4cf..2e

[PATCH 14/15] input: gpio-keys: Use KEY_* keycodes

2016-01-13 Thread Sascha Hauer
The gpio-keys driver takes ascii key codes from platform_data and Linux keycodes from device tree. Convert the ascii keys over to Linux keycodes to get rid of the special cases in the driver. Signed-off-by: Sascha Hauer --- arch/arm/boards/archosg9/board.c| 5 +++-- arch/arm/boards/at91

[PATCH 11/15] input: imx-keypad: convert to input framework

2016-01-13 Thread Sascha Hauer
To make it possible to ask for the button state. Signed-off-by: Sascha Hauer --- drivers/input/Kconfig | 1 + drivers/input/imx_keypad.c | 55 ++ 2 files changed, 13 insertions(+), 43 deletions(-) diff --git a/drivers/input/Kconfig b/drivers/inp

[PATCH 07/15] input: Add input core

2016-01-13 Thread Sascha Hauer
Currently all input driver register themselves as consoles. Consoles are fine for typing text, but they do not allow to ask for the current pressed state of buttons or keypads. They also do not support non printable keys like the function keys. This patch adds a simple input core. On the driver si

[PATCH 01/15] poller: Fix async poller

2016-01-13 Thread Sascha Hauer
The async poller does not work as expected since it can happen that the async poller is removed from the list of pollers while we are iterating over the list. Even list_for_each_entry_safe does not help here since we may remove the next list element, but list_for_each_entry_safe only allows to remo

[PATCH 09/15] input: imx-keypad: Use dev_* functions

2016-01-13 Thread Sascha Hauer
driver should use dev_* rather than pr_* Signed-off-by: Sascha Hauer --- drivers/input/imx_keypad.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/input/imx_keypad.c b/drivers/input/imx_keypad.c index 331eadd..272b836 100644 --- a/drivers/input/imx_keypad

[PATCH 04/15] keymap: Add keypad keys

2016-01-13 Thread Sascha Hauer
Allow to use the number keypad keys. Signed-off-by: Sascha Hauer --- drivers/input/keymap.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/input/keymap.c b/drivers/input/keymap.c index 2e603f4..fdc04f7 100644 --- a/drivers/input/key

[PATCH 15/15] input: gpio-keys: convert to input framework

2016-01-13 Thread Sascha Hauer
To allow asking for the button states. Signed-off-by: Sascha Hauer --- drivers/input/gpio_keys.c | 64 +-- 1 file changed, 17 insertions(+), 47 deletions(-) diff --git a/drivers/input/gpio_keys.c b/drivers/input/gpio_keys.c index acb9e07..38c0f11 1006

[PATCH 13/15] input: imx-keypad: Add device tree support

2016-01-13 Thread Sascha Hauer
The preparations are done in previous patches, now we only have to add the device tree compatible and drio the check for platform_data. Signed-off-by: Sascha Hauer --- drivers/input/imx_keypad.c | 34 -- 1 file changed, 20 insertions(+), 14 deletions(-) diff --gi

[PATCH 10/15] input: move matrix_keypad_build_keymap() to C file

2016-01-13 Thread Sascha Hauer
Future additions will make the function too big to live as a static inline function. Move to a C file and while at it, move matrix_keypad.h to include/input/ where it belongs to. Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/include/mach/devices.h | 2 +- drivers/input/Kconfig

[PATCH 12/15] input: Add device tree parsing support for matrix keymap

2016-01-13 Thread Sascha Hauer
Add support for parsing the "linux,keymap" property. Signed-off-by: Sascha Hauer --- drivers/input/imx_keypad.c| 4 +++- drivers/input/matrix-keymap.c | 49 ++- include/input/matrix_keypad.h | 6 +++--- 3 files changed, 54 insertions(+), 5 deletions(

[PATCH 02/15] keymap: Fix braces

2016-01-13 Thread Sascha Hauer
KEY_LEFTBRACE is the '[' key on an english keyboard and KEY_RIGHTBRACE is the ']' key. Signed-off-by: Sascha Hauer --- drivers/input/keymap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/keymap.c b/drivers/input/keymap.c index b9fd6a2..eb3d4cf 100644 ---