aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/mdio-i2c.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2020-08-27 04:00:29 +0200
committerDavid S. Miller <davem@davemloft.net>2020-08-27 06:55:50 -0700
commitfcba68bd75bb1d42b3aec7f471d382a9e639a672 (patch)
treec644f0420a77433594514771b443f893dd40ae95 /drivers/net/phy/mdio-i2c.c
parentnet: pcs: Move XPCS into new PCS subdirectory (diff)
downloadlinux-fcba68bd75bb1d42b3aec7f471d382a9e639a672.tar.xz
linux-fcba68bd75bb1d42b3aec7f471d382a9e639a672.zip
net/phy/mdio-i2c: Move header file to include/linux/mdio
In preparation for moving all MDIO drivers into drivers/net/mdio, move the mdio-i2c header file into include/linux/mdio so it can be used by both the MDIO driver and the SFP code which instantiates I2C MDIO busses. v2: Add 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>
Diffstat (limited to 'drivers/net/phy/mdio-i2c.c')
-rw-r--r--drivers/net/phy/mdio-i2c.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/phy/mdio-i2c.c b/drivers/net/phy/mdio-i2c.c
index 0746e2cc39ae..09200a70b315 100644
--- a/drivers/net/phy/mdio-i2c.c
+++ b/drivers/net/phy/mdio-i2c.c
@@ -10,10 +10,9 @@
* of their settings.
*/
#include <linux/i2c.h>
+#include <linux/mdio/mdio-i2c.h>
#include <linux/phy.h>
-#include "mdio-i2c.h"
-
/*
* I2C bus addresses 0x50 and 0x51 are normally an EEPROM, which is
* specified to be present in SFP modules. These correspond with PHY