diff options
author | Pritesh Raithatha <praithatha@nvidia.com> | 2011-11-14 12:26:26 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:50:02 -0800 |
commit | 0a3fe4761950c331381f531b2916cea85e22bf70 (patch) | |
tree | 1223aa4b48f301543f55f9bdbd398fc9490057aa /drivers/power | |
parent | 459bae41172306b6d2bd70aa6f497a6a0d52e99f (diff) |
bq20z75: check for battery status update on resume
Bug 877456
Change-Id: Ie276daa13feb6702791fab36f7fa88c3811ed3bb
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/64030
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Rebase-Id: R2a2430d7ae7c1a4262682bd4e537b519d055f98a
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/bq20z75.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/power/bq20z75.c b/drivers/power/bq20z75.c index 9c5e5beda3a8..e231dd8bbeb0 100644 --- a/drivers/power/bq20z75.c +++ b/drivers/power/bq20z75.c @@ -755,11 +755,18 @@ static int bq20z75_suspend(struct i2c_client *client, return 0; } + +static int bq20z75_resume(struct i2c_client *client) +{ + struct bq20z75_info *bq20z75_device = i2c_get_clientdata(client); + + schedule_delayed_work(&bq20z75_device->work, HZ); + return 0; +} #else #define bq20z75_suspend NULL -#endif -/* any smbus transaction will wake up bq20z75 */ #define bq20z75_resume NULL +#endif static const struct i2c_device_id bq20z75_id[] = { { "bq20z75", 0 }, |