]> git.baikalelectronics.ru Git - kernel.git/commit
Input: wm97xx - mark channels which need pen_down
authorWolfram Sang <w.sang@pengutronix.de>
Tue, 5 Jul 2011 02:22:01 +0000 (19:22 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 5 Jul 2011 02:31:47 +0000 (19:31 -0700)
commitf9e4199ac505fd2103831500ed004fa5cadb9e70
tree7f64688e3a44b75aaf418d000444409cacac863b
parent00950032c85ec049b9e240a8986c4317243ac223
Input: wm97xx - mark channels which need pen_down

Currently, battery drivers also use poll_sample() provided by the
wm97xx-core but this code always checks if the pen is down. Mark the
channels which really need this (i.e. for the touchscreen) with the
PEN_DOWN bit, and skip the checks otherwise. Now, the battery channels
can always be read.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/wm9705.c
drivers/input/touchscreen/wm9712.c
drivers/input/touchscreen/wm9713.c