From: Stephen Boyd <[email protected]>

We shouldn't need to set default irq trigger flags here as the firmware
should have properly indicated the trigger type, i.e. level low, in the
DT or ACPI tables.

Signed-off-by: Stephen Boyd <[email protected]>
Signed-off-by: Daniel Campello <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
---

Changes in v4: None
Changes in v3:
 - Added irq trigger flags commit to the series.

Changes in v2: None

 drivers/iio/proximity/sx9310.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/proximity/sx9310.c b/drivers/iio/proximity/sx9310.c
index a6e345bb9ffe5c..9d1b35eee304ee 100644
--- a/drivers/iio/proximity/sx9310.c
+++ b/drivers/iio/proximity/sx9310.c
@@ -947,7 +947,7 @@ static int sx9310_probe(struct i2c_client *client)
                ret = devm_request_threaded_irq(dev, client->irq,
                                                sx9310_irq_handler,
                                                sx9310_irq_thread_handler,
-                                               IRQF_TRIGGER_LOW | IRQF_ONESHOT,
+                                               IRQF_ONESHOT,
                                                "sx9310_event", indio_dev);
                if (ret)
                        return ret;
-- 
2.28.0.163.g6104cc2f0b6-goog

Reply via email to