Skip to contentSkip to conversation

input: Provide coordinate logs for accelerated WM97xx I/O

PATCH Applied Mark Brown 2 participants 2 messages Jan 28, 2010 – Jan 29, 2010

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 input: Provide coordinate logs for accelerated WM97xx I/O

This aids debug of problematic systems.

---
 drivers/input/touchscreen/mainstone-wm97xx.c |    3 +++
 drivers/input/touchscreen/zylonite-wm97xx.c  |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
drivers/input/touchscreen/mainstone-wm97xx.c +3 -0
index 6cdcf2a..b6b8b1c 100644
@@ -153,6 +153,9 @@ static int wm97xx_acc_pen_down(struct wm97xx *wm)
 		if (pressure)
 			p = MODR;
 
+		dev_dbg(wm->dev, "Raw coordinates: x=%x, y=%x, p=%x\n",
+			x, y, p);
+
 		/* are samples valid */
 		if ((x & WM97XX_ADCSRC_MASK) != WM97XX_ADCSEL_X ||
 		    (y & WM97XX_ADCSRC_MASK) != WM97XX_ADCSEL_Y ||
drivers/input/touchscreen/zylonite-wm97xx.c +3 -0
index eca54db..0488498 100644
@@ -118,6 +118,9 @@ static int wm97xx_acc_pen_down(struct wm97xx *wm)
 		if (pressure)
 			p = MODR;
 
+		dev_dbg(wm->dev, "Raw coordinates: x=%x, y=%x, p=%x\n",
+			x, y, p);
+
 		/* are samples valid */
 		if ((x & WM97XX_ADCSRC_MASK) != WM97XX_ADCSEL_X ||
 		    (y & WM97XX_ADCSRC_MASK) != WM97XX_ADCSEL_Y ||
Signature · 1 line
1.6.6