projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
180ab17
)
iio: accel: adxl355: use fwnode_irq_get_byname()
author
Puranjay Mohan
<puranjay12@gmail.com>
Tue, 9 Nov 2021 20:08:40 +0000
(
01:38
+0530)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Thu, 28 Apr 2022 18:22:54 +0000
(19:22 +0100)
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: Puranjay Mohan <puranjay12@gmail.com>
Link:
https://lore.kernel.org/r/20211109200840.135019-3-puranjay12@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl355_core.c
patch
|
blob
|
history
diff --git
a/drivers/iio/accel/adxl355_core.c
b/drivers/iio/accel/adxl355_core.c
index e9c10c8c32f094286770db3f4ee4c287f6f76621..7561399daef320e0cad4c89737eefdb0a92c7092 100644
(file)
--- a/
drivers/iio/accel/adxl355_core.c
+++ b/
drivers/iio/accel/adxl355_core.c
@@
-18,7
+18,7
@@
#include <linux/math64.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
-#include <linux/
of_irq
.h>
+#include <linux/
property
.h>
#include <linux/regmap.h>
#include <linux/units.h>
@@
-745,10
+745,7
@@
int adxl355_core_probe(struct device *dev, struct regmap *regmap,
return ret;
}
- /*
- * TODO: Would be good to move it to the generic version.
- */
- irq = of_irq_get_byname(dev->of_node, "DRDY");
+ irq = fwnode_irq_get_byname(dev_fwnode(dev), "DRDY");
if (irq > 0) {
ret = adxl355_probe_trigger(indio_dev, irq);
if (ret)