Input: wm97xx - provide coordinate logs for accelerated I/O
This aids debug of problematic systems. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
121873059f
commit
dcfc32babb
2 changed files with 6 additions and 0 deletions
|
@ -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 ||
|
||||
|
|
|
@ -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 ||
|
||||
|
|
Loading…
Reference in a new issue