Input: egalax_ts - do not hardcode interrupt trigger
Stop hard-coding interrupt trigger, instead rely on the platform code to do the right thing, according to DT or ACPI data. Link: https://lore.kernel.org/r/20220920042608.1865560-4-dmitry.torokhov@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
d19e719da9
commit
1ffb0cd824
@ -203,10 +203,9 @@ static int egalax_ts_probe(struct i2c_client *client,
|
|||||||
ABS_MT_POSITION_Y, 0, EGALAX_MAX_Y, 0, 0);
|
ABS_MT_POSITION_Y, 0, EGALAX_MAX_Y, 0, 0);
|
||||||
input_mt_init_slots(input_dev, MAX_SUPPORT_POINTS, 0);
|
input_mt_init_slots(input_dev, MAX_SUPPORT_POINTS, 0);
|
||||||
|
|
||||||
error = devm_request_threaded_irq(&client->dev, client->irq, NULL,
|
error = devm_request_threaded_irq(&client->dev, client->irq,
|
||||||
egalax_ts_interrupt,
|
NULL, egalax_ts_interrupt,
|
||||||
IRQF_TRIGGER_LOW | IRQF_ONESHOT,
|
IRQF_ONESHOT, "egalax_ts", ts);
|
||||||
"egalax_ts", ts);
|
|
||||||
if (error < 0) {
|
if (error < 0) {
|
||||||
dev_err(&client->dev, "Failed to register interrupt\n");
|
dev_err(&client->dev, "Failed to register interrupt\n");
|
||||||
return error;
|
return error;
|
||||||
|
Loading…
Reference in New Issue
Block a user