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: gyro: fxas21002c: 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-6-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

+1 -2
+1 -2
drivers/iio/gyro/fxas21002c_core.c
··· 849 849 if (!data->dready_trig) 850 850 return -ENOMEM; 851 851 852 - irq_trig = irqd_get_trigger_type(irq_get_irq_data(data->irq)); 853 - 852 + irq_trig = irq_get_trigger_type(data->irq); 854 853 if (irq_trig == IRQF_TRIGGER_RISING) { 855 854 ret = regmap_field_write(data->regmap_fields[F_IPOL], 1); 856 855 if (ret < 0)