Skip to content

Commit

Permalink
Input: gpio_tilt - delete driver
Browse files Browse the repository at this point in the history
This driver was merged in 2011 as a tool for detecting the orientation
of a screen. The device driver assumes board file setup using the
platform data from <linux/input/gpio_tilt.h>. But no boards in the
kernel tree defines this platform data.

As I am faced with refactoring drivers to use GPIO descriptors and
pass decriptor tables from boards, or use the device tree device
drivers like these creates a serious problem: I cannot fix them and
cannot test them, not even compile-test them with a system actually
using it (no in-tree boardfile).

I suggest to delete this driver and rewrite it using device tree if
it is still in use on actively maintained systems.

I can also offer to rewrite it out of the blue using device tree if
someone promise to test it and help me iterate it.

Signed-off-by: Linus Walleij <[email protected]>
Acked-by: Heiko Stuebner <[email protected]>
Patchwork-Id: 10133609
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
linusw authored and dtor committed Jan 2, 2018
1 parent b3495ce commit 3c8a23c
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 407 deletions.
5 changes: 0 additions & 5 deletions Documentation/gpio/drivers-on-gpio.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ hardware descriptions such as device tree or ACPI:
- gpio-beeper: drivers/input/misc/gpio-beeper.c is used to provide a beep from
an external speaker connected to a GPIO line.

- gpio-tilt-polled: drivers/input/misc/gpio_tilt_polled.c provides tilt
detection switches using GPIO, which is useful for your homebrewn pinball
machine if for nothing else. It can detect different tilt angles of the
monitored object.

- extcon-gpio: drivers/extcon/extcon-gpio.c is used when you need to read an
external connector status, such as a headset line for an audio driver or an
HDMI connector. It will provide a better userspace sysfs interface than GPIO.
Expand Down
103 changes: 0 additions & 103 deletions Documentation/input/devices/gpio-tilt.rst

This file was deleted.

14 changes: 0 additions & 14 deletions drivers/input/misc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -268,20 +268,6 @@ config INPUT_GPIO_BEEPER
To compile this driver as a module, choose M here: the
module will be called gpio-beeper.

config INPUT_GPIO_TILT_POLLED
tristate "Polled GPIO tilt switch"
depends on GPIOLIB || COMPILE_TEST
select INPUT_POLLDEV
help
This driver implements support for tilt switches connected
to GPIO pins that are not capable of generating interrupts.

The list of gpios to use and the mapping of their states
to specific angles is done via platform data.

To compile this driver as a module, choose M here: the
module will be called gpio_tilt_polled.

config INPUT_GPIO_DECODER
tristate "Polled GPIO Decoder Input driver"
depends on GPIOLIB || COMPILE_TEST
Expand Down
1 change: 0 additions & 1 deletion drivers/input/misc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ obj-$(CONFIG_INPUT_DRV2665_HAPTICS) += drv2665.o
obj-$(CONFIG_INPUT_DRV2667_HAPTICS) += drv2667.o
obj-$(CONFIG_INPUT_GP2A) += gp2ap002a00f.o
obj-$(CONFIG_INPUT_GPIO_BEEPER) += gpio-beeper.o
obj-$(CONFIG_INPUT_GPIO_TILT_POLLED) += gpio_tilt_polled.o
obj-$(CONFIG_INPUT_GPIO_DECODER) += gpio_decoder.o
obj-$(CONFIG_INPUT_HISI_POWERKEY) += hisi_powerkey.o
obj-$(CONFIG_HP_SDC_RTC) += hp_sdc_rtc.o
Expand Down
210 changes: 0 additions & 210 deletions drivers/input/misc/gpio_tilt_polled.c

This file was deleted.

Loading

0 comments on commit 3c8a23c

Please sign in to comment.