Input: gpio_event: Allow multiple input devices per gpio_event device
authorArve Hjønnevåg <arve@android.com>
Fri, 24 Jul 2009 22:19:56 +0000 (15:19 -0700)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:02:04 +0000 (12:02 -0800)
commit81a0c80f41cce05e6eea0492ae65946b482985bc
tree955232ffade7305d1ca3d55e8b5b6a4005b034f1
parentae4d1b5e69dfb52855e8a8e05963d3ee3021eeee
Input: gpio_event: Allow multiple input devices per gpio_event device

This is needed to support devices that put non-keyboard buttons in
the keyboard matrix. For instance several devices put the trackball
button in the keyboard matrix. In this case BTN_MOUSE should be
reported from the same input device as REL_X/Y.

It is also useful for devices that have multiple logical keyboard in
the same matrix. The HTC dream has a menu key on the external keyboard
and another menu key on the slide-out keyboard. With a single input
device only one of these menu keys can be mapped to KEY_MENU.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
drivers/input/misc/gpio_axis.c
drivers/input/misc/gpio_event.c
drivers/input/misc/gpio_input.c
drivers/input/misc/gpio_matrix.c
drivers/input/misc/gpio_output.c
include/linux/gpio_event.h