hwmon: Change late resume priority to enable gfx first
authorJohn Mathew <john.mathew@intel.com>
Mon, 21 May 2012 14:43:51 +0000 (17:43 +0300)
committerbuildbot <buildbot@intel.com>
Fri, 8 Jun 2012 13:10:56 +0000 (06:10 -0700)
BZ: 37619

This patch is intended for BZ: 33446. Currently during a
system wide late resume call the hwmon late resume calls
are called before gfx_display late resume call. This patch
changes the order to enable gfx_diplay late resume calls
to be called before the hwmon late resume calls.

Change-Id: I8991998dc447b5940c85d3427fcb5aa43934adb5
Signed-off-by: John Mathew <john.mathew@intel.com>
Reviewed-on: http://android.intel.com:8080/51961
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/hwmon/hmc5883.c
drivers/hwmon/lis3dh_acc.c
drivers/hwmon/ltr502als.c
drivers/hwmon/mpu3050.c
drivers/hwmon/ms5607.c

index b932516..498030d 100644 (file)
@@ -425,7 +425,7 @@ hmc5883_probe(struct i2c_client *client, const struct i2c_device_id *id)
        }
 
 #ifdef CONFIG_HAS_EARLYSUSPEND
-       hmc5883->es.level = EARLY_SUSPEND_LEVEL_DISABLE_FB + 10;
+       hmc5883->es.level = EARLY_SUSPEND_LEVEL_DISABLE_FB - 10;
        hmc5883->es.suspend = hmc5883_early_suspend;
        hmc5883->es.resume = hmc5883_late_resume;
        register_early_suspend(&hmc5883->es);
index e37409a..2be9fbc 100644 (file)
@@ -1210,7 +1210,7 @@ static int lis3dh_acc_probe(struct i2c_client *client,
        lis3dh_acc_disable(acc);
 
 #ifdef CONFIG_HAS_EARLYSUSPEND
-       acc->es.level = EARLY_SUSPEND_LEVEL_DISABLE_FB + 10;
+       acc->es.level = EARLY_SUSPEND_LEVEL_DISABLE_FB - 10;
        acc->es.suspend = lis3dh_early_suspend;
        acc->es.resume = lis3dh_late_resume;
        register_early_suspend(&acc->es);
index b490fcd..2db3cd9 100644 (file)
@@ -817,7 +817,7 @@ static int __init ltr502als_probe(struct i2c_client *client,
        }
 
 #ifdef CONFIG_HAS_EARLYSUSPEND
-       alsps->es.level = EARLY_SUSPEND_LEVEL_DISABLE_FB + 10;
+       alsps->es.level = EARLY_SUSPEND_LEVEL_DISABLE_FB - 10;
        alsps->es.suspend = alsps_early_suspend;
        alsps->es.resume = alsps_late_resume;
 #endif
index ec97988..9d33df8 100644 (file)
@@ -680,7 +680,7 @@ static int __devinit mpu_probe(struct i2c_client *client,
        }
 
 #ifdef CONFIG_HAS_EARLYSUSPEND
-       mpu->es.level = EARLY_SUSPEND_LEVEL_DISABLE_FB + 10;
+       mpu->es.level = EARLY_SUSPEND_LEVEL_DISABLE_FB - 10;
        mpu->es.suspend = mpu_early_suspend;
        mpu->es.resume = mpu_late_resume;
        register_early_suspend(&mpu->es);
index ce4e5df..deb1e61 100644 (file)
@@ -446,7 +446,7 @@ static int __devinit ms5607_probe(struct i2c_client *client,
        ms5607->enabled = 0;
 
 #ifdef CONFIG_HAS_EARLYSUSPEND
-       ms5607->es.level = EARLY_SUSPEND_LEVEL_DISABLE_FB + 10;
+       ms5607->es.level = EARLY_SUSPEND_LEVEL_DISABLE_FB - 10;
        ms5607->es.suspend = ms5607_early_suspend;
        ms5607->es.resume = ms5607_late_resume;
        register_early_suspend(&ms5607->es);