projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b3e910
)
Input: mms114 - do not clobber interrupt trigger
author
Dmitry Torokhov
<
[email protected]
>
Tue, 23 Jan 2018 19:06:56 +0000
(11:06 -0800)
committer
Dmitry Torokhov
<
[email protected]
>
Fri, 26 Jan 2018 19:27:14 +0000
(11:27 -0800)
Rely on the platform (device tree, ACPI, etc) to properly configure
interrupt trigger/polarity instead of hardcoding the falling edge.
Reviewed-by: Simon Shields <
[email protected]
>
Tested-by: Simon Shields <
[email protected]
>
Reviewed-by: Andi Shyti <
[email protected]
>
Tested-by: Andi Shyti <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/touchscreen/mms114.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/mms114.c
b/drivers/input/touchscreen/mms114.c
index e5eeb6311f7de782ef9bfc03fa290498e76e2c7d..92f2e9da351f192c7d100d5a8ba5876614f43c0e 100644
(file)
--- a/
drivers/input/touchscreen/mms114.c
+++ b/
drivers/input/touchscreen/mms114.c
@@
-497,9
+497,9
@@
static int mms114_probe(struct i2c_client *client,
return error;
}
- error = devm_request_threaded_irq(&client->dev, client->irq,
NULL,
-
mms114_interrupt, IRQF_TRIGGER_FALLING |
IRQF_ONESHOT,
- dev_name(&client->dev), data);
+ error = devm_request_threaded_irq(&client->dev, client->irq,
+
NULL, mms114_interrupt,
IRQF_ONESHOT,
+
dev_name(&client->dev), data);
if (error) {
dev_err(&client->dev, "Failed to register interrupt\n");
return error;