Input: pixcir_i2c_ts - initialize interrupt mode and power mode
authorRoger Quadros <rogerq@ti.com>
Mon, 19 May 2014 05:44:35 +0000 (22:44 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 19 May 2014 06:25:56 +0000 (23:25 -0700)
commit3b36fbb01dc50f58e7803006f5a99683daf26c8c
treed523a06fd4a4ea9b5043e22c101fe853bb7075bb
parente9d4718dcd53281c191cb5fccb53ce0246e10104
Input: pixcir_i2c_ts - initialize interrupt mode and power mode

Introduce helper functions to configure power and interrupt registers.
Default to IDLE mode on probe as device supports auto wakeup to ACVIE mode
on detecting finger touch.

Configure interrupt mode and polarity on start up.  Power down on device
closure or module removal.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/pixcir_i2c_ts.c
include/linux/input/pixcir_ts.h