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: imu: st_lsm6dsx: 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>
Reviewed-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20240901135950.797396-13-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

+1 -2
+1 -2
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c
··· 2531 2531 bool irq_active_low; 2532 2532 int err; 2533 2533 2534 - irq_type = irqd_get_trigger_type(irq_get_irq_data(hw->irq)); 2535 - 2534 + irq_type = irq_get_trigger_type(hw->irq); 2536 2535 switch (irq_type) { 2537 2536 case IRQF_TRIGGER_HIGH: 2538 2537 case IRQF_TRIGGER_RISING: