--- v3
+++ v4
@@ -10,11 +10,11 @@
Signed-off-by: Hui Wang <jason77.wang@gmail.com>
---
- drivers/input/touchscreen/egalax_ts.c | 19 ++++++++++++++++---
- 1 files changed, 16 insertions(+), 3 deletions(-)
+ drivers/input/touchscreen/egalax_ts.c | 25 ++++++++++++++++++++++---
+ 1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/drivers/input/touchscreen/egalax_ts.c b/drivers/input/touchscreen/egalax_ts.c
-index 70524dd..54361c9 100644
+index 70524dd..8516a4e 100644
--- a/drivers/input/touchscreen/egalax_ts.c
+++ b/drivers/input/touchscreen/egalax_ts.c
@@ -28,6 +28,7 @@
@@ -57,5 +57,23 @@
ret = egalax_firmware_version(client);
if (ret < 0) {
+@@ -274,11 +287,17 @@ static int egalax_ts_resume(struct device *dev)
+
+ static SIMPLE_DEV_PM_OPS(egalax_ts_pm_ops, egalax_ts_suspend, egalax_ts_resume);
+
++static struct of_device_id egalax_ts_dt_ids[] = {
++ { .compatible = "eeti,egalax_ts" },
++ { /* sentinel */ }
++};
++
+ static struct i2c_driver egalax_ts_driver = {
+ .driver = {
+ .name = "egalax_ts",
+ .owner = THIS_MODULE,
+ .pm = &egalax_ts_pm_ops,
++ .of_match_table = egalax_ts_dt_ids,
+ },
+ .id_table = egalax_ts_id,
+ .probe = egalax_ts_probe,
--
1.7.6