aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/cyapa.h
diff options
context:
space:
mode:
authorDudley Du <dudl@cypress.com>2015-07-30 11:19:18 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-07-30 11:33:59 -0700
commit36e9615bd70dc8cd5d7d4831943f788f5231350f (patch)
tree9fca363f0a983e8cc8cb18a48404b5b00159a416 /drivers/input/mouse/cyapa.h
parentInput: touchscreen - export OF module alias information (diff)
downloadlinux-dev-36e9615bd70dc8cd5d7d4831943f788f5231350f.tar.xz
linux-dev-36e9615bd70dc8cd5d7d4831943f788f5231350f.zip
Input: cyapa - add regulator vcc support
We need to power up the chip before we can initialize it. On systems that delegate task of powering up regulators to firmware we assume that we'll be simply given a dummy regulator. Signed-off-by: Dudley Du <dudl@cypress.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to '')
-rw-r--r--drivers/input/mouse/cyapa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/mouse/cyapa.h b/drivers/input/mouse/cyapa.h
index af1253640590..b812bba8cdd7 100644
--- a/drivers/input/mouse/cyapa.h
+++ b/drivers/input/mouse/cyapa.h
@@ -321,6 +321,7 @@ struct cyapa {
u8 status[BL_STATUS_SIZE];
bool operational; /* true: ready for data reporting; false: not. */
+ struct regulator *vcc;
struct i2c_client *client;
struct input_dev *input;
char phys[32]; /* Device physical location */