Skip to content

Commit

Permalink
Input: cy8ctmg110_ts - do not hard code interrupt trigger
Browse files Browse the repository at this point in the history
Rely on the platform to set up interrupt polarity/type properly instead
of hard-coding falling edge.

Reviewed-by: Linus Walleij <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
dtor committed Jun 6, 2021
1 parent 6abee58 commit 9a9b1a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/input/touchscreen/cy8ctmg110_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ static int cy8ctmg110_probe(struct i2c_client *client,
cy8ctmg110_set_sleepmode(ts, false);

err = request_threaded_irq(client->irq, NULL, cy8ctmg110_irq_thread,
IRQF_TRIGGER_RISING | IRQF_ONESHOT,
"touch_reset_key", ts);
IRQF_ONESHOT, "touch_reset_key", ts);
if (err < 0) {
dev_err(&client->dev,
"irq %d busy? error %d\n", client->irq, err);
Expand Down

0 comments on commit 9a9b1a7

Please sign in to comment.