public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] device property: Adding fwnode_irq_get_byname()
@ 2021-11-09 20:08 Puranjay Mohan
  2021-11-09 20:08 ` [PATCH v2 1/2] device property: Add fwnode_irq_get_byname() Puranjay Mohan
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Puranjay Mohan @ 2021-11-09 20:08 UTC (permalink / raw)
  To: gregkh, rafael, heikki.krogerus, andriy.shevchenko, kuba,
	saravanak, linux-kernel, lars, Michael.Hennerich, jic23,
	linux-iio
  Cc: Puranjay Mohan

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(-)

-- 
2.30.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-04-11 10:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-09 20:08 [PATCH v2 0/2] device property: Adding fwnode_irq_get_byname() Puranjay Mohan
2021-11-09 20:08 ` [PATCH v2 1/2] device property: Add fwnode_irq_get_byname() Puranjay Mohan
2021-11-10  8:53   ` Andy Shevchenko
2021-11-10 17:04     ` Puranjay Mohan
2021-11-10 17:27       ` Andy Shevchenko
2021-11-09 20:08 ` [PATCH v2 2/2] iio: accel: adxl355: use fwnode_irq_get_byname() Puranjay Mohan
2022-02-01 16:25   ` Andy Shevchenko
2022-02-27 12:41     ` Jonathan Cameron
2022-04-10 17:13       ` Jonathan Cameron
2022-04-11 10:17         ` Andy Shevchenko
2021-11-09 22:42 ` [PATCH v2 0/2] device property: Adding fwnode_irq_get_byname() Saravana Kannan
2021-11-10  8:32   ` Andy Shevchenko
2021-11-10  8:32 ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox