Staging: add Synaptics TM1217 Touchscreen Controller driver

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 <ramesh.agarwal@intel.com>
[avoid deference NULL ts if kzalloc fails]
[finger_touched may be used uninitialized]
[fix missing sync which confused twm]
Signed-off-by: Hong Liu <hong.liu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Ramesh Agarwal
2010-10-22 14:00:20 +01:00
committed by Greg Kroah-Hartman
parent fc2347e202
commit 78fd115e21
7 changed files with 705 additions and 0 deletions
+2
View File
@@ -175,5 +175,7 @@ source "drivers/staging/intel_sst/Kconfig"
source "drivers/staging/speakup/Kconfig"
source "drivers/staging/cptm1217/Kconfig"
endif # !STAGING_EXCLUDE_BUILD
endif # STAGING
+1
View File
@@ -68,3 +68,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/
+11
View File
@@ -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.
+2
View File
@@ -0,0 +1,2 @@
obj-$(CONFIG_TOUCHSCREEN_CLEARPAD_TM1217) += clearpad_tm1217.o
+5
View File
@@ -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
File diff suppressed because it is too large Load Diff
+9
View File
@@ -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