i2c-msm-v2: Add support for suspend to disk

Add support to I2C-MSM-V2 driver for suspend to
disk feature.

Change-Id: Ifeb176227b2bee9859d29cff776e67ad73b4f9f0
Signed-off-by: Shrey Vijay <shreyv@codeaurora.org>
This commit is contained in:
Shrey Vijay 2018-03-22 13:10:20 +05:30
parent 8e181ea4e8
commit b7d0257cd6

View file

@ -2848,8 +2848,8 @@ static void i2c_msm_pm_rt_init(struct device *dev) {}
static const struct dev_pm_ops i2c_msm_pm_ops = {
#ifdef CONFIG_PM_SLEEP
.suspend_noirq = i2c_msm_pm_sys_suspend_noirq,
.resume_noirq = i2c_msm_pm_sys_resume_noirq,
SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(i2c_msm_pm_sys_suspend_noirq,
i2c_msm_pm_sys_resume_noirq)
#endif
SET_RUNTIME_PM_OPS(i2c_msm_pm_rt_suspend,
i2c_msm_pm_rt_resume,