Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: xgene: Move shared header file into include/linux

This header file is currently included into the ethernet driver via a
relative path into the PHY subsystem. This is bad practice, and causes
issues for the upcoming move of the MDIO driver. Move the header file
into include/linux to clean this up.

v2:
Move header to include/linux/mdio

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Andrew Lunn and committed by
David S. Miller
232e15e1 fcba68bd

+2 -2
+1 -1
drivers/net/ethernet/apm/xgene/xgene_enet_main.h
··· 18 18 #include <linux/of_platform.h> 19 19 #include <linux/of_net.h> 20 20 #include <linux/of_mdio.h> 21 + #include <linux/mdio/mdio-xgene.h> 21 22 #include <linux/module.h> 22 23 #include <net/ip.h> 23 24 #include <linux/prefetch.h> ··· 27 26 #include "xgene_enet_hw.h" 28 27 #include "xgene_enet_cle.h" 29 28 #include "xgene_enet_ring2.h" 30 - #include "../../../phy/mdio-xgene.h" 31 29 32 30 #define ETHER_MIN_PACKET 64 33 31 #define ETHER_STD_PACKET 1518
+1 -1
drivers/net/phy/mdio-xgene.c
··· 11 11 #include <linux/efi.h> 12 12 #include <linux/if_vlan.h> 13 13 #include <linux/io.h> 14 + #include <linux/mdio/mdio-xgene.h> 14 15 #include <linux/module.h> 15 16 #include <linux/of_platform.h> 16 17 #include <linux/of_net.h> ··· 19 18 #include <linux/prefetch.h> 20 19 #include <linux/phy.h> 21 20 #include <net/ip.h> 22 - #include "mdio-xgene.h" 23 21 24 22 static bool xgene_mdio_status; 25 23
drivers/net/phy/mdio-xgene.h include/linux/mdio/mdio-xgene.h