Input: add generic GPIO-tilt driver
authorHeiko Stübner <heiko@sntech.de>
Tue, 29 Nov 2011 19:04:09 +0000 (11:04 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 1 Dec 2011 07:41:16 +0000 (23:41 -0800)
commit3bfd5c5baf66e975b0f365a0cda8d75bf2953ebe
tree49517da40dd6071ed9d3acde9fa1ef97d39ede13
parenta6c61789c8499381a5fe612f11dc95d0b55e590a
Input: add generic GPIO-tilt driver

There exist tilt switches that simply report their tilt-state via
some gpios. The number and orientation of their axes can vary
depending on the switch used and the build of the device. Also two
or more one-axis switches could be combined to provide multi-dimensional
orientation.

One example of a device using such a switch is the family of Qisda
ebook readers, where the switch provides information about the
landscape / portrait orientation of the device. The example in
Documentation/input/gpio-tilt.txt documents exactly this one-axis
device.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Documentation/input/gpio-tilt.txt [new file with mode: 0644]
drivers/input/misc/Kconfig
drivers/input/misc/Makefile
drivers/input/misc/gpio_tilt_polled.c [new file with mode: 0644]
include/linux/input/gpio_tilt.h [new file with mode: 0644]