Synaptics TM1217 Touchscreen Controller driver
PATCH 1/1 Synaptics TM1217 Touchscreen Controller driver
From: Ramesh Agarwal <[email protected]>
This is submitted as a staging driver because there is a more generic driver "on the way" for all these devices and has been for some time. The intent is that as soon as the general drivers are in the mainstream this one will get any leftovers integrated and then be dumped. Until this unspecified future data at least people can actually use their hardware.
As its interface is simply input layer we can do that without pain.
Some clean up by Alan Cox
- Extract gpio support and IRQ support more sanely
- Tidying
Signed-off-by Ramesh Agarwal <[email protected]>
[avoid deference NULL ts if kzalloc fails]
[finger_touched may be used uninitialized]
[fix missing sync which confused twm]
Signed-off-by Hong Liu <[email protected]>
Signed-off-by Alan Cox <[email protected]>
---
drivers/staging/Kconfig | 2 drivers/staging/Makefile | 1 drivers/staging/cptm1217/Kconfig | 11 drivers/staging/cptm1217/Makefile | 2 drivers/staging/cptm1217/TODO | 5 drivers/staging/cptm1217/clearpad_tm1217.c | 675 ++++++++++++++++++++++++++++ drivers/staging/cptm1217/cp_tm1217.h | 9 7 files changed, 705 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/cptm1217/Kconfig create mode 100644 drivers/staging/cptm1217/Makefile create mode 100644 drivers/staging/cptm1217/TODO create mode 100644 drivers/staging/cptm1217/clearpad_tm1217.c create mode 100644 drivers/staging/cptm1217/cp_tm1217.h
drivers/staging/Kconfig +2 -0
@@ -177,5 +177,7 @@ source "drivers/staging/intel_sst/Kconfig" source "drivers/staging/speakup/Kconfig" +source "drivers/staging/cptm1217/Kconfig" + endif # !STAGING_EXCLUDE_BUILD endif # STAGING
drivers/staging/Makefile +1 -0
@@ -69,3 +69,4 @@ obj-$(CONFIG_BCM_WIMAX) += bcm/ obj-$(CONFIG_FT1000) += ft1000/ obj-$(CONFIG_SND_INTEL_SST) += intel_sst/ obj-$(CONFIG_SPEAKUP) += speakup/ +obj-$(CONFIG_TOUCHSCREEN_CLEARPAD_TM1217) += cptm1217/
drivers/staging/cptm1217/Kconfig new file +11 -0
@@ -0,0 +1,11 @@ +config TOUCHSCREEN_CLEARPAD_TM1217 + tristate "Synaptics Clearpad TM1217" + depends on I2C + depends on GPIOLIB + help + Say Y here if you have a Synaptics Clearpad TM1217 Controller + + If unsure, say N. + + To compile this driver as a module, choose M here: the + module will be called clearpad_tm1217.
drivers/staging/cptm1217/Makefile new file +2 -0
@@ -0,0 +1,2 @@ +obj-$(CONFIG_TOUCHSCREEN_CLEARPAD_TM1217) += clearpad_tm1217.o +
drivers/staging/cptm1217/TODO new file +5 -0
@@ -0,0 +1,5 @@ +- Wait for the official upstream general clearpad drivers as promised over + the past few months +- Merge any device support needed from this driver into it +- Delete this driver +
drivers/staging/cptm1217/clearpad_tm1217.c new file +675 -0
675 lines not on this page · raw message
drivers/staging/cptm1217/cp_tm1217.h new file +9 -0
@@ -0,0 +1,9 @@ +#ifndef __LINUX_I2C_CP_TM1217_H +#define __LINUX_I2C_CP_TM1217_H + +struct cp_tm1217_platform_data +{ +int gpio;/* If not set uses the IRQ resource 0 */ +}; + +#endif