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: accel: bmc150: 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: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://patch.msgid.link/20240823230056.745872-1-andy.shevchenko@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Andy Shevchenko and committed by
Jonathan Cameron
3f131813 dae65fc2

+2 -2
+2 -2
drivers/iio/accel/bmc150-accel-core.c
··· 10 10 #include <linux/delay.h> 11 11 #include <linux/slab.h> 12 12 #include <linux/acpi.h> 13 - #include <linux/of_irq.h> 14 13 #include <linux/pm.h> 15 14 #include <linux/pm_runtime.h> 15 + #include <linux/property.h> 16 16 #include <linux/iio/iio.h> 17 17 #include <linux/iio/sysfs.h> 18 18 #include <linux/iio/buffer.h> ··· 514 514 */ 515 515 irq_info = bmc150_accel_interrupts_int1; 516 516 if (data->type == BOSCH_BMC156 || 517 - irq == of_irq_get_byname(dev->of_node, "INT2")) 517 + irq == fwnode_irq_get_byname(dev_fwnode(dev), "INT2")) 518 518 irq_info = bmc150_accel_interrupts_int2; 519 519 520 520 for (i = 0; i < BMC150_ACCEL_INTERRUPTS; i++)