Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Stephen Boyd and committed by
Jonathan Cameron
fe184be8 f86ff748

+1 -1
+1 -1
drivers/iio/proximity/sx9310.c
··· 945 945 ret = devm_request_threaded_irq(dev, client->irq, 946 946 sx9310_irq_handler, 947 947 sx9310_irq_thread_handler, 948 - IRQF_TRIGGER_LOW | IRQF_ONESHOT, 948 + IRQF_ONESHOT, 949 949 "sx9310_event", indio_dev); 950 950 if (ret) 951 951 return ret;