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)
committerArve Hjønnevåg <arve@android.com>
Mon, 8 Feb 2010 23:07:48 +0000 (15:07 -0800)
commitf263c5383a87531ba05e342c06ef238250061939
treeacf6947b2cb3b4964072c56ff8be8985ba3963c1
parent0103b65fe81367bfa61551ec328a30debc153030
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