linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/1] bcma: gpio: Switch to use fwnode instead of of_node
@ 2022-05-04  9:25 Andy Shevchenko
  2022-05-09 11:41 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2022-05-04  9:25 UTC (permalink / raw)
  To: Andy Shevchenko, linux-wireless, linux-kernel; +Cc: Rafał Miłecki

GPIO library now accepts fwnode as a firmware node,
so switch the driver to use it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
v2: fixed typo (LKP)
 drivers/bcma/driver_gpio.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/bcma/driver_gpio.c b/drivers/bcma/driver_gpio.c
index 1e74ec1c7f23..fac8ff983aec 100644
--- a/drivers/bcma/driver_gpio.c
+++ b/drivers/bcma/driver_gpio.c
@@ -11,6 +11,8 @@
 #include <linux/gpio/driver.h>
 #include <linux/interrupt.h>
 #include <linux/export.h>
+#include <linux/property.h>
+
 #include <linux/bcma/bcma.h>
 
 #include "bcma_private.h"
@@ -182,9 +184,8 @@ int bcma_gpio_init(struct bcma_drv_cc *cc)
 	chip->direction_input	= bcma_gpio_direction_input;
 	chip->direction_output	= bcma_gpio_direction_output;
 	chip->parent		= bus->dev;
-#if IS_BUILTIN(CONFIG_OF)
-	chip->of_node		= cc->core->dev.of_node;
-#endif
+	chip->fwnode		= dev_fwnode(&cc->core->dev);
+
 	switch (bus->chipinfo.id) {
 	case BCMA_CHIP_ID_BCM4707:
 	case BCMA_CHIP_ID_BCM5357:
-- 
2.35.1


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

* Re: [PATCH v2 1/1] bcma: gpio: Switch to use fwnode instead of of_node
  2022-05-04  9:25 [PATCH v2 1/1] bcma: gpio: Switch to use fwnode instead of of_node Andy Shevchenko
@ 2022-05-09 11:41 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2022-05-09 11:41 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, linux-wireless, linux-kernel,
	Rafał Miłecki

Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:

> GPIO library now accepts fwnode as a firmware node,
> so switch the driver to use it.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Patch applied to wireless-next.git, thanks.

f63bc788727c bcma: gpio: Switch to use fwnode instead of of_node

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20220504092525.71668-1-andriy.shevchenko@linux.intel.com/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


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

end of thread, other threads:[~2022-05-09 11:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-04  9:25 [PATCH v2 1/1] bcma: gpio: Switch to use fwnode instead of of_node Andy Shevchenko
2022-05-09 11:41 ` Kalle Valo

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