Skip to content

Commit

Permalink
drivers: input: Clean up ft5x46 touchscreen test module and dead code
Browse files Browse the repository at this point in the history
* Modify point 1 to format the ft5x46 driver Kconfig file
  Modify point 2 to clean up the focaltech_test_(ft5x46/ft8716)
  Modify point 3 to clean up focaltech_test_(ft5x46/ft8716) code
  Modify point 4 to delete the ft5x46_ts_spi touchscreen register

(cherry picked from commit 8571d7a3ec9b684e4b3cce8455b86d38e8008dd5)
Change-Id: Ib76ad3ef496c791b9890cf259554c193da61906a
  • Loading branch information
stic-server-open authored and Nanhumly committed Aug 26, 2023
1 parent 60e843e commit 84588d6
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 2,000 deletions.
79 changes: 33 additions & 46 deletions drivers/input/touchscreen/ft5x46/Kconfig
Original file line number Diff line number Diff line change
@@ -1,59 +1,46 @@
config TOUCHSCREEN_FT5X46
tristate "FocalTech touchscreens"
depends on I2C
help
Say Y here if you have a FT5X46 touchscreen.
Ft5x06 controllers are multi touch controllers which can
report 5 touches at a time.
tristate "FocalTech touchscreens"
depends on I2C
help
Say Y here if you have a FT5X46 touchscreen.
Ft5x06 controllers are multi touch controllers which can
report 5 touches at a time.

If unsure, say N.
If unsure, say N.

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

config TOUCHSCREEN_FT5X46_CALIBRATE
bool "calibrate after flash firmware"
depends on TOUCHSCREEN_FT5X46
default y
help
must turn off after all pre-production device get upgrade.
bool "calibrate after flash firmware"
depends on TOUCHSCREEN_FT5X46
default y
help
must turn off after all pre-production device get upgrade.

config TOUCHSCREEN_FT5X46_TYPEB
bool "use type B for touch report"
depends on TOUCHSCREEN_FT5X46
default y
help
enable typeB for multi-touch report.
bool "use type B for touch report"
depends on TOUCHSCREEN_FT5X46
default y
help
enable typeB for multi-touch report.

config TOUCHSCREEN_FT5X46_I2C
tristate "Focaltech FT5X0X I2C touchscreens"
depends on I2C
select TOUCHSCREEN_FT5X46
help
Say Y here if you have a Focaltech FT5X46 I2C touchscreen connected
to your system.
tristate "Focaltech FT5X0X I2C touchscreens"
depends on I2C
select TOUCHSCREEN_FT5X46
help
Say Y here if you have a Focaltech FT5X46 I2C touchscreen connected
to your system.

If unsure, say N.
If unsure, say N.

To compile this driver as a set of modules, choose M here: the
modules will be called ft5x46_ts_i2c.

config TOUCHSCREEN_FT5X46_SPI
tristate "Focaltech FT5X0X SPI touchscreens"
depends on SPI
select TOUCHSCREEN_FT5X46
help
Say Y here if you have a Focaltech FT5X46 SPI touchscreen connected
to your system.

If unsure, say N.

To compile this driver as a set of modules, choose M here: the
modules will be called ft5x46_ts_spi.
To compile this driver as a set of modules, choose M here: the
modules will be called ft5x46_ts_i2c.

config TOUCHSCREEN_FT5X46P_PROXIMITY
bool "focaltech touch proximity enable"
depends on TOUCHSCREEN_FT5X46
default n
help
focaltech touch proximity enable.
bool "focaltech touch proximity enable"
depends on TOUCHSCREEN_FT5X46
default n
help
focaltech touch proximity enable.
3 changes: 1 addition & 2 deletions drivers/input/touchscreen/ft5x46/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
# Makefile for the FT5X46 touchscreen driver.
#

obj-$(CONFIG_TOUCHSCREEN_FT5X46) += ft5x46_ts.o focaltech_test.o focaltech_test_ft8716.o
obj-$(CONFIG_TOUCHSCREEN_FT5X46) += ft5x46_ts.o
obj-$(CONFIG_TOUCHSCREEN_FT5X46_I2C) += ft5x46_ts_i2c.o
obj-$(CONFIG_TOUCHSCREEN_FT5X46_SPI) += ft5x46_ts_spi.o
Loading

0 comments on commit 84588d6

Please sign in to comment.