Skip to content

Commit 643dd74

Browse files
Marco Felschdtor
authored andcommitted
Input: edt-ft5x06 - use pm core to enable/disable the wake irq
We do not have to handle the wake-irq within the driver because the pm core can handle this for us. The only use case for the suspend/resume callbacks was to handle the wake-irq so we can remove the callbacks. Signed-off-by: Marco Felsch <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 53435cd commit 643dd74

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

drivers/input/touchscreen/edt-ft5x06.c

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,29 +1227,6 @@ static int edt_ft5x06_ts_remove(struct i2c_client *client)
12271227
return 0;
12281228
}
12291229

1230-
static int __maybe_unused edt_ft5x06_ts_suspend(struct device *dev)
1231-
{
1232-
struct i2c_client *client = to_i2c_client(dev);
1233-
1234-
if (device_may_wakeup(dev))
1235-
enable_irq_wake(client->irq);
1236-
1237-
return 0;
1238-
}
1239-
1240-
static int __maybe_unused edt_ft5x06_ts_resume(struct device *dev)
1241-
{
1242-
struct i2c_client *client = to_i2c_client(dev);
1243-
1244-
if (device_may_wakeup(dev))
1245-
disable_irq_wake(client->irq);
1246-
1247-
return 0;
1248-
}
1249-
1250-
static SIMPLE_DEV_PM_OPS(edt_ft5x06_ts_pm_ops,
1251-
edt_ft5x06_ts_suspend, edt_ft5x06_ts_resume);
1252-
12531230
static const struct edt_i2c_chip_data edt_ft5x06_data = {
12541231
.max_support_points = 5,
12551232
};
@@ -1288,7 +1265,6 @@ static struct i2c_driver edt_ft5x06_ts_driver = {
12881265
.driver = {
12891266
.name = "edt_ft5x06",
12901267
.of_match_table = edt_ft5x06_of_match,
1291-
.pm = &edt_ft5x06_ts_pm_ops,
12921268
},
12931269
.id_table = edt_ft5x06_ts_id,
12941270
.probe = edt_ft5x06_ts_probe,

0 commit comments

Comments
 (0)