summaryrefslogtreecommitdiffstats
path: root/drivers/w1
diff options
context:
space:
mode:
authorJohannes Poehlmann <johannes.poehlmann@izt-labs.de>2017-07-25 13:27:13 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 17:20:01 +0200
commitc3248f0ee0615f7f43d3ad0f27006854b2bd325f (patch)
tree8b43bccd078b3fd724705a055fae1ab04d0ad825 /drivers/w1
parentbaa8055de0293a91f87bef5f32296d9ddcba9c56 (diff)
downloadlinux-stable-c3248f0ee0615f7f43d3ad0f27006854b2bd325f.tar.gz
linux-stable-c3248f0ee0615f7f43d3ad0f27006854b2bd325f.tar.bz2
linux-stable-c3248f0ee0615f7f43d3ad0f27006854b2bd325f.zip
w1: ds1wm: add level interrupt modes
w1: ds1wm: add level interrupt modes Signed-off-by: Johannes Poehlmann <johannes.poehlmann@izt-labs.de> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1')
-rw-r--r--drivers/w1/masters/ds1wm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/w1/masters/ds1wm.c b/drivers/w1/masters/ds1wm.c
index d15575dfbc48..f8a3ba004c09 100644
--- 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);