Input: wm9712 - fix return code for wrong sample
authorMarkus Pargmann <mpa@pengutronix.de>
Sat, 9 Mar 2013 23:20:50 +0000 (15:20 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 12 Mar 2013 15:50:19 +0000 (08:50 -0700)
commitfa45255ee72649bd061116f7d3a765f5784bf078
tree8ca2e5caecee1ac127abbd2ec859e4ccdff1a7a8
parentcfd5d09691ee188a36c00f5c3b220fbf082a78d7
Input: wm9712 - fix return code for wrong sample

Instead of interpreting a wrong measurement as pen up, we should
try to read again.

Based on wm9712: pen up by Teresa Gámez and Christian Hemp.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/wm9712.c