diff options
author | Chaitanya Bandi <bandik@nvidia.com> | 2012-12-26 17:15:40 +0530 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2012-12-28 14:12:33 -0800 |
commit | 7b8337803bca6cf52232754209d8eb1432c17ca8 (patch) | |
tree | bbf8ab4cbe6967a7c5757ddc802d26a548345347 /include | |
parent | 8512c57959ee09769863587a0299acb7d090c62c (diff) |
mfd: max8907c: Use dev_pm_ops for suspend/resume
Modified suspend/resume of max8907c to use dev_pm_ops
instead of using I2C client driver's suspend/resume.
Bug 1166544
Change-Id: Idb562b4ffc909690f219c1ac9cfc7d45201de629
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/174281
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/max8907c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mfd/max8907c.h b/include/linux/mfd/max8907c.h index 48014b0485c5..f8b95a258569 100644 --- a/include/linux/mfd/max8907c.h +++ b/include/linux/mfd/max8907c.h @@ -251,8 +251,8 @@ int max8907c_set_bits(struct i2c_client *i2c, u8 reg, u8 mask, u8 val); int max8907c_irq_init(struct max8907c *chip, int irq, int irq_base); void max8907c_irq_free(struct max8907c *chip); -int max8907c_suspend(struct i2c_client *i2c, pm_message_t state); -int max8907c_resume(struct i2c_client *i2c); +int max8907c_suspend(struct device *dev); +int max8907c_resume(struct device *dev); void max8907c_deep_sleep(int enter); int max8907c_pwr_en_config(void); int max8907c_pwr_en_attach(void); |