Skip to contentSkip to conversation

fix migor_ts dependency and compile warning

PATCH In review Magnus Damm 2 participants 2 messages May 15, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix migor_ts dependency and compile warning

This patch adds I2C dependencies to the MigoR touchscreen driver, and while at it kills off a compile warning.

---

Applies to the git input tree b92b4853a19498f17ae802b382e3deee8cb01bc8.

 drivers/input/touchscreen/Kconfig    |    2 +-
 drivers/input/touchscreen/migor_ts.c |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
drivers/input/touchscreen/Kconfig +1 -1
@@ -148,7 +148,7 @@ config TOUCHSCREEN_PENMOUNT
 
 config TOUCHSCREEN_MIGOR
 	tristate "Renesas MIGO-R touchscreen"
-	depends on SH_MIGOR
+	depends on SH_MIGOR && I2C
 	help
 	  Say Y here to enable MIGO-R touchscreen support.
 
drivers/input/touchscreen/migor_ts.c +2 -1
@@ -144,7 +144,8 @@ static void migor_ts_close(struct input_
 	enable_irq(priv->irq);
 }
 
-static int migor_ts_probe(struct i2c_client *client)
+static int migor_ts_probe(struct i2c_client *client,
+			  const struct i2c_device_id *idp)
 {
 	struct migor_ts_priv *priv;
 	struct input_dev *input;
maintainer
#1 lore raw

Hi Magnus,

Quoted 3 lines · Magnus Damm

This patch adds I2C dependencies to the MigoR touchscreen driver, and while at it kills off a compile warning.

I am going to fold it into original patch since I have to rebuild my tree for that -next thing, if you don't mind.

Signature · 1 line
Dmitry