iio: pressure: bmp280: use irq_get_trigger_type()
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 1 Sep 2024 13:59:50 +0000 (14:59 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 30 Sep 2024 08:20:59 +0000 (09:20 +0100)
commit3ad9e6396834b66e2b77222e6bea9e5fb08699d6
tree55bfd72c57c3e3a8cff6439fee347c1c9c29ab9a
parentdf2976072c697618d7b2230fc267a9145ae6f94a
iio: pressure: bmp280: 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>
Tested-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Link: https://patch.msgid.link/20240901135950.797396-16-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/bmp280-core.c