Input: mms114 - do not clobber interrupt trigger
Rely on the platform (device tree, ACPI, etc) to properly configure interrupt trigger/polarity instead of hardcoding the falling edge. Reviewed-by: Simon Shields <simon@lineageos.org> Tested-by: Simon Shields <simon@lineageos.org> Reviewed-by: Andi Shyti <andi.shyti@samsung.com> Tested-by: Andi Shyti <andi.shyti@samsung.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
Родитель
4b3e910d7f
Коммит
5e703b8834
|
@ -497,9 +497,9 @@ static int mms114_probe(struct i2c_client *client,
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
error = devm_request_threaded_irq(&client->dev, client->irq, NULL,
|
error = devm_request_threaded_irq(&client->dev, client->irq,
|
||||||
mms114_interrupt, IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
|
NULL, mms114_interrupt, IRQF_ONESHOT,
|
||||||
dev_name(&client->dev), data);
|
dev_name(&client->dev), data);
|
||||||
if (error) {
|
if (error) {
|
||||||
dev_err(&client->dev, "Failed to register interrupt\n");
|
dev_err(&client->dev, "Failed to register interrupt\n");
|
||||||
return error;
|
return error;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче