iio: accel: adxl380: use irq_get_trigger_type()
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 1 Sep 2024 13:59:36 +0000 (14:59 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 30 Sep 2024 08:20:58 +0000 (09:20 +0100)
commitb90dcdd40fee338c2df627666ef013213dc49d4f
tree31e1f3f6efcb0debeeda929b9c71f12408cf0c7c
parentc6ea08cdaa5868c3a8ec8d0f2d56359e1af3a5fa
iio: accel: adxl380: use irq_get_trigger_type()

Use irq_get_trigger_type() to replace getting the irq data then the
type in two steps.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20240901135950.797396-2-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl380.c