]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit364e853ceec92cafe2c0d7fe7cc1d89891903234
tree4833f9319c2770bd7278770e933151670ca1add7
parentd9f753f3e9edc0b4c0acdbe2708746242f7c7a79
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