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: bmi323: 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>
Link: https://patch.msgid.link/20240901135950.797396-10-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

+1 -7
+1 -7
drivers/iio/imu/bmi323/bmi323_core.c
··· 1881 1881 struct fwnode_handle *fwnode; 1882 1882 enum bmi323_irq_pin irq_pin; 1883 1883 int ret, irq, irq_type; 1884 - struct irq_data *desc; 1885 1884 1886 1885 fwnode = dev_fwnode(data->dev); 1887 1886 if (!fwnode) ··· 1897 1898 irq_pin = BMI323_IRQ_INT2; 1898 1899 } 1899 1900 1900 - desc = irq_get_irq_data(irq); 1901 - if (!desc) 1902 - return dev_err_probe(data->dev, -EINVAL, 1903 - "Could not find IRQ %d\n", irq); 1904 - 1905 - irq_type = irqd_get_trigger_type(desc); 1901 + irq_type = irq_get_trigger_type(irq); 1906 1902 switch (irq_type) { 1907 1903 case IRQF_TRIGGER_RISING: 1908 1904 latch = false;