input:misc:mpu:added new reglator for powerup seq.
qtang [Fri, 6 Dec 2013 08:38:41 +0000 (16:38 +0800)]
Add another regulator vlogic_gyro into regulator list
of the gyro driver.

Bug 1418728

Signed-off-by: David Pu <dpu@nvidia.com>
Signed-off-by: qtang <qtang@nvidia.com>
Change-Id: I93fd8181a575062b16ae9e1af7c0dbe14d866713
Reviewed-on: http://git-master/r/339057
Reviewed-on: http://git-master/r/350640
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Yu (Engrg-SW) <davyu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Chi <mchi@nvidia.com>
Tested-by: Martin Chi <mchi@nvidia.com>

drivers/input/misc/mpu/inv_gyro.c
drivers/input/misc/mpu/inv_gyro.h

index 97498bf..36e6441 100644 (file)
@@ -51,6 +51,7 @@
 static char *nvi_vregs[] = {
        "vdd",
        "vlogic",
+       "vlogic_gyro",
 };
 
 static struct inv_reg_map_s chip_reg = {
index af4093f..9779cd1 100644 (file)
@@ -424,7 +424,7 @@ struct inv_gyro_state_s {
        struct i2c_client *i2c;
        struct mpu_platform_data plat_data;
        struct inv_mpu_slave *mpu_slave;
-       struct regulator_bulk_data vreg[2];
+       struct regulator_bulk_data vreg[3];
        unsigned char i2c_addr;
        unsigned char sample_divider;
        unsigned char fifo_divider;