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

iio: humidity: hts221: use irq_get_trigger_type()

Use irq_get_trigger_type() to replace getting the irq data then the
type in two steps.

Reviewed-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20240901135950.797396-8-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

+1 -2
+1 -2
drivers/iio/humidity/hts221_buffer.c
··· 81 81 unsigned long irq_type; 82 82 int err; 83 83 84 - irq_type = irqd_get_trigger_type(irq_get_irq_data(hw->irq)); 85 - 84 + irq_type = irq_get_trigger_type(hw->irq); 86 85 switch (irq_type) { 87 86 case IRQF_TRIGGER_HIGH: 88 87 case IRQF_TRIGGER_RISING: