Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+1 -1
+1 -1
drivers/iio/pressure/bmp280-core.c
··· 2596 2596 unsigned long irq_trig; 2597 2597 int ret; 2598 2598 2599 - irq_trig = irqd_get_trigger_type(irq_get_irq_data(irq)); 2599 + irq_trig = irq_get_trigger_type(irq); 2600 2600 if (irq_trig != IRQF_TRIGGER_RISING) { 2601 2601 dev_err(dev, "non-rising trigger given for EOC interrupt, trying to enforce it\n"); 2602 2602 irq_trig = IRQF_TRIGGER_RISING;