Input: wm97xx - provide coordinate logs for accelerated I/O
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 29 Jan 2010 06:37:39 +0000 (22:37 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 29 Jan 2010 06:38:30 +0000 (22:38 -0800)
This aids debug of problematic systems.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/mainstone-wm97xx.c
drivers/input/touchscreen/zylonite-wm97xx.c

index 6cdcf2a6e0365b2dd78a78bb25ae03ebcb9ee757..b6b8b1c7eceaf99b6eec1d613f3511c4a4a65550 100644 (file)
@@ -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 ||
index eca54dbdf4937386c179d928b22e90a739bbc54c..0488498676436938a7336fcb7eb1b8fa34bbc6fe 100644 (file)
@@ -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 ||