-
- Downloads
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>
Showing
- Documentation/input/gpio-tilt.txt 103 additions, 0 deletionsDocumentation/input/gpio-tilt.txt
- drivers/input/misc/Kconfig 14 additions, 0 deletionsdrivers/input/misc/Kconfig
- drivers/input/misc/Makefile 1 addition, 0 deletionsdrivers/input/misc/Makefile
- drivers/input/misc/gpio_tilt_polled.c 213 additions, 0 deletionsdrivers/input/misc/gpio_tilt_polled.c
- include/linux/input/gpio_tilt.h 73 additions, 0 deletionsinclude/linux/input/gpio_tilt.h
Loading
Please register or sign in to comment