OSDN Git Service

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>
Thu, 22 Jul 2010 22:11:58 +0000 (15:11 -0700)
commit8159f2ebac028cc9473de3e85aa35487f99eaf89
tree7ecae9b9231ba6f2cd9d9674298a4d35a914dc0c
parentf1876fa87f61c0451a6c271fb1de48372782c90d
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