Now, there is only suspend function then it will cause a problem that
touchkey is not working after sleep, so add resume function.
It's enough only that resume function calls tc300k_input_open() because
suspend function calls just tc300k_input_close().
Change-Id: I2b96fe797a94fbd20cd3082c9460130dd6b848eb
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
return 0;
}
+
+static int tc300k_resume(struct device *dev)
+{
+ struct tc300k_data *data = dev_get_drvdata(dev);
+ struct input_dev *input_dev = data->input_dev;
+
+ return tc300k_input_open(input_dev);
+}
#endif
MODULE_DEVICE_TABLE(i2c, tc300k_id);
#ifndef CONFIG_HAS_EARLYSUSPEND
const struct dev_pm_ops tc300k_pm_ops = {
.suspend = tc300k_suspend,
+ .resume = tc300k_resume,
};
#endif