Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4bfc4cac authored by Shantanu Jain's avatar Shantanu Jain Committed by Abinaya P
Browse files

input: touchscreen: Change dev_pm_ops for Goodix driver



Convert the driver to dev_pm_ops from SIMPLE_DEV_PM_OPS
in Goodix TS driver to reduce suspend/resume latency.

Change-Id: I45690b239c73f636538b864f0c4a7e539a02eedb
Signed-off-by: default avatarShantanu Jain <shjain@codeaurora.org>
parent 80fa7e98
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -2277,8 +2277,15 @@ static void gtp_esd_check_func(struct work_struct *work)
}
#endif

static SIMPLE_DEV_PM_OPS(goodix_ts_dev_pm_ops, goodix_ts_suspend,
					goodix_ts_resume);
#if (!defined(CONFIG_FB) && !defined(CONFIG_HAS_EARLYSUSPEND))
static const struct dev_pm_ops goodix_ts_dev_pm_ops = {
	.suspend = goodix_ts_suspend,
	.resume = goodix_ts_resume,
};
#else
static const struct dev_pm_ops goodix_ts_dev_pm_ops = {
};
#endif

static const struct i2c_device_id goodix_ts_id[] = {
	{ GTP_I2C_NAME, 0 },