]> git.baikalelectronics.ru Git - kernel.git/commit
iio: sx9310: Fix irq handling
authorDaniel Campello <campello@chromium.org>
Mon, 3 Aug 2020 23:58:03 +0000 (17:58 -0600)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Sep 2020 18:40:41 +0000 (19:40 +0100)
commit710f8b4c83d087af9348c54c302f462a0b11e905
tree4833f9319c2770bd7278770e933151670ca1add7
parent0f8567dd3a38486a6c9bcfe7db5fb63f5d6a8a93
iio: sx9310: Fix irq handling

Fixes enable/disable irq handling at various points. The driver needs to
only enable/disable irqs if there is an actual irq handler installed.

Signed-off-by: Daniel Campello <campello@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/sx9310.c