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

iio: accel: adxl355: use fwnode_irq_get_byname()

Use the generic fwnode_irq_get_byname() in place of of_irq_get_byname()
to get the IRQ number from the interrupt pin.

Signed-off-by: Puranjay Mohan <puranjay12@gmail.com>
Link: https://lore.kernel.org/r/20211109200840.135019-3-puranjay12@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Puranjay Mohan and committed by
Jonathan Cameron
d1100dd9 180ab171

+2 -5
+2 -5
drivers/iio/accel/adxl355_core.c
··· 18 18 #include <linux/math64.h> 19 19 #include <linux/module.h> 20 20 #include <linux/mod_devicetable.h> 21 - #include <linux/of_irq.h> 21 + #include <linux/property.h> 22 22 #include <linux/regmap.h> 23 23 #include <linux/units.h> 24 24 ··· 745 745 return ret; 746 746 } 747 747 748 - /* 749 - * TODO: Would be good to move it to the generic version. 750 - */ 751 - irq = of_irq_get_byname(dev->of_node, "DRDY"); 748 + irq = fwnode_irq_get_byname(dev_fwnode(dev), "DRDY"); 752 749 if (irq > 0) { 753 750 ret = adxl355_probe_trigger(indio_dev, irq); 754 751 if (ret)