From: Jonathan Cameron Date: Sun, 1 Sep 2024 13:59:48 +0000 (+0100) Subject: iio: light: st_uvis25: use irq_get_trigger_type() X-Git-Tag: microblaze-v6.16~492^2~41^2~140 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=a9facbf521e7b02b2123ae141fc21ff273ebacf3;p=linux-2.6-microblaze.git iio: light: st_uvis25: 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 Reviewed-by: Lorenzo Bianconi Link: https://patch.msgid.link/20240901135950.797396-14-jic23@kernel.org Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/light/st_uvis25_core.c b/drivers/iio/light/st_uvis25_core.c index fba3997574bb..f1fc8cb6f69a 100644 --- a/drivers/iio/light/st_uvis25_core.c +++ b/drivers/iio/light/st_uvis25_core.c @@ -174,8 +174,7 @@ static int st_uvis25_allocate_trigger(struct iio_dev *iio_dev) unsigned long irq_type; int err; - irq_type = irqd_get_trigger_type(irq_get_irq_data(hw->irq)); - + irq_type = irq_get_trigger_type(hw->irq); switch (irq_type) { case IRQF_TRIGGER_HIGH: case IRQF_TRIGGER_RISING: