summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorStephen Boyd <swboyd@chromium.org>2020-08-04 01:58:15 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-09-03 20:40:44 +0200
commitfe184be8c3528f848f66d51340d42afc92209f0a (patch)
tree456beb3526e577a2240623973db1a0547a52715b /drivers
parentiio: sx9310: Enable vdd and svdd regulators at probe (diff)
downloadlinux-fe184be8c3528f848f66d51340d42afc92209f0a.tar.xz
linux-fe184be8c3528f848f66d51340d42afc92209f0a.zip
iio: sx9310: Use irq trigger flags from firmware
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 <swboyd@chromium.org> Signed-off-by: Daniel Campello <campello@chromium.org> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iio/proximity/sx9310.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/proximity/sx9310.c b/drivers/iio/proximity/sx9310.c
index 018184667672..9d72d08ab9e7 100644
--- a/drivers/iio/proximity/sx9310.c
+++ b/drivers/iio/proximity/sx9310.c
@@ -945,7 +945,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;