iio: imu: adis16475: make use of irq_get_trigger_type()
authorNuno Sa <nuno.sa@analog.com>
Wed, 17 Jan 2024 13:10:50 +0000 (14:10 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 17 Feb 2024 16:16:09 +0000 (16:16 +0000)
commit689c0953b97724d802608f604b19d557277ef05a
treeff64257c29e6840f4b12c252e513a06e2c68ad34
parent680ce1d3a3dc63234406231c1f7c40e4f8ed0878
iio: imu: adis16475: make use of irq_get_trigger_type()

There's no need to call both irq_get_irq_data() and
irqd_get_trigger_type() as we already have an helper for that. This
allows for code simplification.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240117-adis-improv-v1-2-7f90e9fad200@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis16475.c