diff options
author | Andy Shevchenko <andy.shevchenko@gmail.com> | 2024-08-24 02:00:56 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-09-03 18:49:43 +0100 |
commit | 3f131813d70191f187f804c176a03d4f9e80ba73 (patch) | |
tree | 843a3b0946af84c1d041b87c07a11f9710c3f0cd | |
parent | dae65fc2bc76851520bd4ae748fe09656cc65057 (diff) | |
download | linux-stable-3f131813d70191f187f804c176a03d4f9e80ba73.tar.gz linux-stable-3f131813d70191f187f804c176a03d4f9e80ba73.tar.bz2 linux-stable-3f131813d70191f187f804c176a03d4f9e80ba73.zip |
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>
-rw-r--r-- | drivers/iio/accel/bmc150-accel-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/accel/bmc150-accel-core.c b/drivers/iio/accel/bmc150-accel-core.c index 03121d020470..14ce03c70ab5 100644 --- a/drivers/iio/accel/bmc150-accel-core.c +++ b/drivers/iio/accel/bmc150-accel-core.c @@ -10,9 +10,9 @@ #include <linux/delay.h> #include <linux/slab.h> #include <linux/acpi.h> -#include <linux/of_irq.h> #include <linux/pm.h> #include <linux/pm_runtime.h> +#include <linux/property.h> #include <linux/iio/iio.h> #include <linux/iio/sysfs.h> #include <linux/iio/buffer.h> @@ -514,7 +514,7 @@ static void bmc150_accel_interrupts_setup(struct iio_dev *indio_dev, */ irq_info = bmc150_accel_interrupts_int1; if (data->type == BOSCH_BMC156 || - irq == of_irq_get_byname(dev->of_node, "INT2")) + irq == fwnode_irq_get_byname(dev_fwnode(dev), "INT2")) irq_info = bmc150_accel_interrupts_int2; for (i = 0; i < BMC150_ACCEL_INTERRUPTS; i++) |