MPU6050: Disable irq when suspend all sensors
authorHunk Lin <hulin@nvidia.com>
Mon, 30 Jul 2012 16:19:09 +0000 (00:19 +0800)
committerSimone Willett <swillett@nvidia.com>
Wed, 15 Aug 2012 01:21:12 +0000 (18:21 -0700)
commitc3f2e8c77c8e9a2a04c243fc2e639c90024e6162
treeb1d6da01aa8b39ebf4288b059fb83ca4a72a99eb
parent6cc291b8e2330743225d842f107be8f9e504484a
MPU6050: Disable irq when suspend all sensors

When we suspend all sensors, MPU6050 continue generating irqs.
So set MPUREG_INT_ENABLE to 0 for saving power.

Bug 1021448

Signed-off-by: Hunk Lin <hulin@nvidia.com>
Change-Id: I90acb0b5e297c61c205a20b8eb54e6164a4d5b32
Reviewed-on: http://git-master/r/119344
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prem Sasidharan <psasidharan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
(cherry picked from commit 420cba2c46f70f77945653be51656b6ae89d5397)
Reviewed-on: http://git-master/r/123477
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
drivers/misc/inv_mpu/mpu6050/mldl_cfg.c