Skip to content

device property: Adding fwnode_irq_get_byname()

Puranjay Mohan linux-iio lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 10 repliesIn review
  2. v11 patch 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2device property: Add fwnode_irq_get_byname()drivers/base/property.c include/linux/property.h+25 -03 replies
2/2iio: accel: adxl355: use fwnode_irq_get_byname()drivers/iio/accel/adxl355_core.c+2 -54 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] device property: Adding fwnode_irq_get_byname()

The first patch in this series adds the fwnode_irq_get_byname() which is the generic version of the of_irq_get_byname(). It is used to get the IRQ number from name of the interrupt.

The second patch in this series uses the fwnode_irq_get_byname() function in the IIO driver of the ADXL355 accelerometer. The driver has been tested after applying this patch on a Raspberry PI. The ADXL355 was connected to the Raspberry Pi using I2C and fwnode_irq_get_byname() was used to get the IRQ number for the "DRDY" interrupt. Earlier this driver was using of_irq_get_byname() to get this IRQ number.

Puranjay Mohan (2):
device property: Add fwnode_irq_get_byname()
iio: accel: adxl355: use fwnode_irq_get_byname()

 drivers/base/property.c          | 23 +++++++++++++++++++++++
 drivers/iio/accel/adxl355_core.c |  7 ++-----
 include/linux/property.h         |  2 ++
 3 files changed, 27 insertions(+), 5 deletions(-)
Signature · 1 line
2.30.1