mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
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>
This commit is contained in:
parent
df2976072c
commit
3ad9e63968
|
|
@ -2596,7 +2596,7 @@ static int bmp085_fetch_eoc_irq(struct device *dev,
|
|||
unsigned long irq_trig;
|
||||
int ret;
|
||||
|
||||
irq_trig = irqd_get_trigger_type(irq_get_irq_data(irq));
|
||||
irq_trig = irq_get_trigger_type(irq);
|
||||
if (irq_trig != IRQF_TRIGGER_RISING) {
|
||||
dev_err(dev, "non-rising trigger given for EOC interrupt, trying to enforce it\n");
|
||||
irq_trig = IRQF_TRIGGER_RISING;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user