Re: [v3 2/3] 2/3 i2c: Cypress TTSP G3 MTDEV I2C Device Driver

Previous thread: [v3 3/3] 3/3 spi: Cypress TTSP G3 MTDEV SPI Device Driver by Kevin McNeely on Wednesday, December 29, 2010 - 12:17 pm. (1 message)

Next thread: Project by Sgt Paul Moore on Tuesday, December 28, 2010 - 10:57 am. (1 message)
From: Kevin McNeely
Date: Wednesday, December 29, 2010 - 12:17 pm

Cypress TTSP Gen3 I2C Device Driver.
Provides i2c communications modules for the
Cypress TTSP Gen3 MTDEV Core Driver.

Signed-off-by: Kevin McNeely <kev@cypress.com>
---
Changes since v2:
- Fixed first line of multi-line comments to follow style guide

 drivers/input/touchscreen/Kconfig      |   12 ++
 drivers/input/touchscreen/Makefile     |    1 +
 drivers/input/touchscreen/cyttsp_i2c.c |  183 ++++++++++++++++++++++++++++++++
 3 files changed, 196 insertions(+), 0 deletions(-)
 create mode 100644 drivers/input/touchscreen/cyttsp_i2c.c

diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig
index 7d886bc..e1a37f5 100644
--- a/drivers/input/touchscreen/Kconfig
+++ b/drivers/input/touchscreen/Kconfig
@@ -129,6 +129,18 @@ config TOUCHSCREEN_CYTTSP_CORE
 	help
 	  Always activated for Cypress TTSP touchscreen
 
+config TOUCHSCREEN_CYTTSP_I2C
+	tristate "Cypress TTSP i2c touchscreen"
+	depends on I2C && TOUCHSCREEN_CYTTSP_CORE
+	help
+	  Say Y here if you have a Cypress TTSP touchscreen
+	  connected to your system with an I2C interface.
+
+	  If unsure, say N.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called cyttsp-i2c.
+
 config TOUCHSCREEN_DA9034
 	tristate "Touchscreen support for Dialog Semiconductor DA9034"
 	depends on PMIC_DA903X
diff --git a/drivers/input/touchscreen/Makefile b/drivers/input/touchscreen/Makefile
index b6f1ba8..88ee091 100644
--- a/drivers/input/touchscreen/Makefile
+++ b/drivers/input/touchscreen/Makefile
@@ -17,6 +17,7 @@ obj-$(CONFIG_TOUCHSCREEN_BITSY)		+= h3600_ts_input.o
 obj-$(CONFIG_TOUCHSCREEN_BU21013)       += bu21013_ts.o
 obj-$(CONFIG_TOUCHSCREEN_CY8CTMG110)	+= cy8ctmg110_ts.o
 obj-$(CONFIG_TOUCHSCREEN_CYTTSP_CORE)   += cyttsp_core.o
+obj-$(CONFIG_TOUCHSCREEN_CYTTSP_I2C)    += cyttsp_i2c.o
 obj-$(CONFIG_TOUCHSCREEN_DA9034)	+= da9034-ts.o
 obj-$(CONFIG_TOUCHSCREEN_DYNAPRO)	+= dynapro.o
 obj-$(CONFIG_TOUCHSCREEN_HAMPSHIRE)	+= hampshire.o
diff --git ...
From: Hong Liu
Date: Monday, January 3, 2011 - 6:45 pm

On Thu, 2010-12-30 at 03:17 +0800, Kevin McNeely wrote:

I think what we get here is a pointer to cyttsp_i2c, and we need to pass
cyttsp_i2c->ttsp_client to cyttsp_suspend/resume.

Thanks,


--

Previous thread: [v3 3/3] 3/3 spi: Cypress TTSP G3 MTDEV SPI Device Driver by Kevin McNeely on Wednesday, December 29, 2010 - 12:17 pm. (1 message)

Next thread: Project by Sgt Paul Moore on Tuesday, December 28, 2010 - 10:57 am. (1 message)