Input: ad7879 - fix deficient device disable
authorMichael Hennerich <michael.hennerich@analog.com>
Tue, 2 Aug 2011 22:41:37 +0000 (15:41 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 3 Aug 2011 05:17:44 +0000 (22:17 -0700)
commit4fecc2088fd02ce8a6580c12822987d3c6bab9b8
treecc8aa9b806e1494f018c634c62936854b8275e62
parent0a7a8fff7b8a3bc2d3528af07c9c88083250303d
Input: ad7879 - fix deficient device disable

Input close or device disable should not interact with the exported
gpiolib functionality. However that's the case. __ad7879_disable()
clears the entire AD7879_REG_CTRL2, while it should just power down
the ADC and its reference.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/ad7879.c