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:
baa8055
)
w1: ds1wm: add level interrupt modes
author
Johannes Poehlmann
<
[email protected]
>
Tue, 25 Jul 2017 11:27:13 +0000
(13:27 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Mon, 28 Aug 2017 15:20:01 +0000
(17:20 +0200)
w1: ds1wm: add level interrupt modes
Signed-off-by: Johannes Poehlmann <
[email protected]
>
Acked-by: Evgeniy Polyakov <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/w1/masters/ds1wm.c
patch
|
blob
|
history
diff --git
a/drivers/w1/masters/ds1wm.c
b/drivers/w1/masters/ds1wm.c
index d15575dfbc48d3f78d987e4d395997970babb0ee..f8a3ba004c09321b0b67526a3d2a654f48dc3e70 100644
(file)
--- a/
drivers/w1/masters/ds1wm.c
+++ b/
drivers/w1/masters/ds1wm.c
@@
-566,6
+566,10
@@
static int ds1wm_probe(struct platform_device *pdev)
irq_set_irq_type(ds1wm_data->irq, IRQ_TYPE_EDGE_RISING);
if (res->flags & IORESOURCE_IRQ_LOWEDGE)
irq_set_irq_type(ds1wm_data->irq, IRQ_TYPE_EDGE_FALLING);
+ if (res->flags & IORESOURCE_IRQ_HIGHLEVEL)
+ irq_set_irq_type(ds1wm_data->irq, IRQ_TYPE_LEVEL_HIGH);
+ if (res->flags & IORESOURCE_IRQ_LOWLEVEL)
+ irq_set_irq_type(ds1wm_data->irq, IRQ_TYPE_LEVEL_LOW);
ret = devm_request_irq(&pdev->dev, ds1wm_data->irq, ds1wm_isr,
IRQF_SHARED, "ds1wm", ds1wm_data);