Input: wm97xx - add possibility to control the GPIO_STATUS shift
authorMarek Vasut <marek.vasut@gmail.com>
Tue, 21 Jul 2009 05:28:50 +0000 (22:28 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 21 Jul 2009 05:30:33 +0000 (22:30 -0700)
commit99fde513f57db2c8e1b202ade4be7d47033ff09b
tree85e5bacd05e1f634f80667d3ab4135b219c10741
parentb833306febc7d9b805a89aff29f1e410a64981c4
Input: wm97xx - add possibility to control the GPIO_STATUS shift

This patch allows tweaking the behaviour of GPIO_STATUS register
shift quirk that's in wm97xx-core. The problem with GPIO_STATUS
register being shifted by one doesn't appear on all hardware it
seems and causes problems with accelerated touchscreen drivers on
Palm hardware. Therefore an accelerated touchscreen driver can select
if the shift is/isn't happening on the hardware.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/mainstone-wm97xx.c
drivers/input/touchscreen/wm97xx-core.c
include/linux/wm97xx.h