Skip to contentSkip to conversation

net: phy: at803x: Replace of_gpio.h with what indeed is used

PATCH Applied Andy Shevchenko 3 participants 3 messages Mar 16, 2023 – Mar 19, 2023

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

PATCH 1/1 net: phy: at803x: Replace of_gpio.h with what indeed is used

of_gpio.h in this driver is solely used as a proxy to other headers. This is incorrect usage of the of_gpio.h. Replace it .h with what indeed is used in the code.

---
 drivers/net/phy/at803x.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/phy/at803x.c +1 -2
index 22f4458274aa..656136628ffd 100644
@@ -13,12 +13,11 @@
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
 #include <linux/ethtool_netlink.h>
-#include <linux/of_gpio.h>
 #include <linux/bitfield.h>
-#include <linux/gpio/consumer.h>
 #include <linux/regulator/of_regulator.h>
 #include <linux/regulator/driver.h>
 #include <linux/regulator/consumer.h>
+#include <linux/of.h>
 #include <linux/phylink.h>
 #include <linux/sfp.h>
 #include <dt-bindings/net/qca-ar803x.h>
Signature · 1 line
2.39.2
#2 lore raw
In reply to Andy Shevchenko
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Quoted 8 lines · On Thu, 16 Mar 2023 14:08:26 +0200 you wrote:

of_gpio.h in this driver is solely used as a proxy to other headers. This is incorrect usage of the of_gpio.h. Replace it .h with what indeed is used in the code.

---
 drivers/net/phy/at803x.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Here is the summary with links:
- [net-next,v1,1/1] net: phy: at803x: Replace of_gpio.h with what indeed is used

    https://git.kernel.org/netdev/net-next/c/a593a2fcfdfb

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html