Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3248f0e authored by Johannes Poehlmann's avatar Johannes Poehlmann Committed by Greg Kroah-Hartman
Browse files

w1: ds1wm: add level interrupt modes



w1: ds1wm: add level interrupt modes

Signed-off-by: default avatarJohannes Poehlmann <johannes.poehlmann@izt-labs.de>
Acked-by: default avatarEvgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent baa8055d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);