Skip to content

Commit 3f13181

Browse files
andy-shevjic23
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent dae65fc commit 3f13181

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/iio/accel/bmc150-accel-core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
#include <linux/delay.h>
1111
#include <linux/slab.h>
1212
#include <linux/acpi.h>
13-
#include <linux/of_irq.h>
1413
#include <linux/pm.h>
1514
#include <linux/pm_runtime.h>
15+
#include <linux/property.h>
1616
#include <linux/iio/iio.h>
1717
#include <linux/iio/sysfs.h>
1818
#include <linux/iio/buffer.h>
@@ -514,7 +514,7 @@ static void bmc150_accel_interrupts_setup(struct iio_dev *indio_dev,
514514
*/
515515
irq_info = bmc150_accel_interrupts_int1;
516516
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"))
518518
irq_info = bmc150_accel_interrupts_int2;
519519

520520
for (i = 0; i < BMC150_ACCEL_INTERRUPTS; i++)

0 commit comments

Comments
 (0)