* [PATCH v1 1/1] gpio: tegra: Replace of_node_to_fwnode() with more suitable API
@ 2024-08-22 22:38 Andy Shevchenko
2024-09-02 10:12 ` Bartosz Golaszewski
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2024-08-22 22:38 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, linux-gpio, linux-tegra,
linux-kernel
Cc: Bartosz Golaszewski, Thierry Reding, Jonathan Hunter,
Andy Shevchenko
of_node_to_fwnode() is a IRQ domain specific implementation of
of_fwnode_handle(). Replace the former with more suitable API.
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
---
drivers/gpio/gpio-tegra.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c
index ea5f9cc14bc4..6d3a39a03f58 100644
--- a/drivers/gpio/gpio-tegra.c
+++ b/drivers/gpio/gpio-tegra.c
@@ -18,11 +18,12 @@
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/module.h>
-#include <linux/seq_file.h>
#include <linux/irqdomain.h>
#include <linux/irqchip/chained_irq.h>
#include <linux/pinctrl/consumer.h>
#include <linux/pm.h>
+#include <linux/property.h>
+#include <linux/seq_file.h>
#define GPIO_BANK(x) ((x) >> 5)
#define GPIO_PORT(x) (((x) >> 3) & 0x3)
@@ -755,7 +756,7 @@ static int tegra_gpio_probe(struct platform_device *pdev)
}
irq = &tgi->gc.irq;
- irq->fwnode = of_node_to_fwnode(pdev->dev.of_node);
+ irq->fwnode = dev_fwnode(&pdev->dev);
irq->child_to_parent_hwirq = tegra_gpio_child_to_parent_hwirq;
irq->populate_parent_alloc_arg = tegra_gpio_populate_parent_fwspec;
irq->handler = handle_simple_irq;
--
2.46.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1 1/1] gpio: tegra: Replace of_node_to_fwnode() with more suitable API
2024-08-22 22:38 [PATCH v1 1/1] gpio: tegra: Replace of_node_to_fwnode() with more suitable API Andy Shevchenko
@ 2024-09-02 10:12 ` Bartosz Golaszewski
0 siblings, 0 replies; 2+ messages in thread
From: Bartosz Golaszewski @ 2024-09-02 10:12 UTC (permalink / raw)
To: Linus Walleij, linux-gpio, linux-tegra, linux-kernel,
Andy Shevchenko
Cc: Bartosz Golaszewski, Bartosz Golaszewski, Thierry Reding,
Jonathan Hunter
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
On Fri, 23 Aug 2024 01:38:45 +0300, Andy Shevchenko wrote:
> of_node_to_fwnode() is a IRQ domain specific implementation of
> of_fwnode_handle(). Replace the former with more suitable API.
>
>
Applied, thanks!
[1/1] gpio: tegra: Replace of_node_to_fwnode() with more suitable API
commit: 842da04a99193a8385208a619fe97d0de9f3ed30
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-02 10:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-22 22:38 [PATCH v1 1/1] gpio: tegra: Replace of_node_to_fwnode() with more suitable API Andy Shevchenko
2024-09-02 10:12 ` Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).