misc: mpu3050: Allow accelerometer to enter suspend during LP
authorDaniel Solomon <daniels@nvidia.com>
Tue, 22 Nov 2011 01:33:10 +0000 (17:33 -0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 21 Dec 2011 06:36:27 +0000 (11:36 +0530)
commitb1a7a10921afac1e9af7d02bbd4fac3d2414add7
tree8ccce1c0d359aa1c1dfde832b82111a54a93d809
parent34e784bd579bc71302562e789925aad71d046d19
misc: mpu3050: Allow accelerometer to enter suspend during LP

The KXTF9's control reg PC1 bit was being set for both
suspend and resume config structs in kxtf9_set_odr().
This caused the accelerometer to be turned on during both
suspend and resume.

Bug 902379

Cherry-picked From: http://git-master/r/#change,65983
Signed-off-by: Daniel Solomon <daniels@nvidia.com>

Change-Id: If0a17af5b4538008dbf4d4f8b2d280f8d3981e3f
Reviewed-on: http://git-master/r/69260
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Daniel Solomon <daniels@nvidia.com>
Tested-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
drivers/misc/mpu3050/accel/kxtf9.c