Skip to contentSkip to conversation

ieee802154: at86rf230: Replace of_gpio.h by proper one

PATCH In review Andy Shevchenko 3 participants 3 messages Mar 4, 2024 – Mar 6, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ieee802154: at86rf230: Replace of_gpio.h by proper one

of_gpio.h is deprecated and subject to remove.
The driver doesn't use it directly, replace it
with what is really being used.

---
 drivers/net/ieee802154/at86rf230.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ieee802154/at86rf230.c +1 -2
index 6212164ffb36..f632b0cfd5ae 100644
@@ -11,17 +11,16 @@
  */
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/gpio/consumer.h>
 #include <linux/hrtimer.h>
 #include <linux/jiffies.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
-#include <linux/gpio.h>
 #include <linux/delay.h>
 #include <linux/property.h>
 #include <linux/spi/spi.h>
 #include <linux/regmap.h>
 #include <linux/skbuff.h>
-#include <linux/of_gpio.h>
 #include <linux/ieee802154.h>
 
 #include <net/mac802154.h>
Signature · 1 line
2.43.0.rc1.1.gbec44491f096
maintainer
#2 lore raw
In reply to Andy Shevchenko

Hello.

Quoted 22 lines · Andy Shevchenko

of_gpio.h is deprecated and subject to remove.
The driver doesn't use it directly, replace it
with what is really being used.

---
  drivers/net/ieee802154/at86rf230.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ieee802154/at86rf230.c +1 -0
index 6212164ffb36..f632b0cfd5ae 100644
@@ -11,17 +11,16 @@
   */
  #include <linux/kernel.h>
  #include <linux/module.h>
+#include <linux/gpio/consumer.h>
  #include <linux/hrtimer.h>
  #include <linux/jiffies.h>
  #include <linux/interrupt.h>
  #include <linux/irq.h>

drivers/net/ieee802154/at86rf230.c line 26

Quoted 10 lines
drivers/net/ieee802154/at86rf230.c +0 -2
-#include <linux/gpio.h>
  #include <linux/delay.h>
  #include <linux/property.h>
  #include <linux/spi/spi.h>
  #include <linux/regmap.h>
  #include <linux/skbuff.h>
-#include <linux/of_gpio.h>
  #include <linux/ieee802154.h>
 
  #include <net/mac802154.h>

This patch has been applied to the wpan-next tree and will be part of the next pull request to net-next. Thanks!

regards
Stefan Schmidt