Commit fcba68bd authored by Andrew Lunn's avatar Andrew Lunn Committed by David S. Miller

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: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2fa4e4b7
...@@ -15647,6 +15647,7 @@ L: netdev@vger.kernel.org ...@@ -15647,6 +15647,7 @@ L: netdev@vger.kernel.org
S: Maintained S: Maintained
F: drivers/net/phy/phylink.c F: drivers/net/phy/phylink.c
F: drivers/net/phy/sfp* F: drivers/net/phy/sfp*
F: include/linux/mdio/mdio-i2c.h
F: include/linux/phylink.h F: include/linux/phylink.h
F: include/linux/sfp.h F: include/linux/sfp.h
K: phylink\.h|struct\s+phylink|\.phylink|>phylink_|phylink_(autoneg|clear|connect|create|destroy|disconnect|ethtool|helper|mac|mii|of|set|start|stop|test|validate) K: phylink\.h|struct\s+phylink|\.phylink|>phylink_|phylink_(autoneg|clear|connect|create|destroy|disconnect|ethtool|helper|mac|mii|of|set|start|stop|test|validate)
......
...@@ -10,10 +10,9 @@ ...@@ -10,10 +10,9 @@
* of their settings. * of their settings.
*/ */
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/mdio/mdio-i2c.h>
#include <linux/phy.h> #include <linux/phy.h>
#include "mdio-i2c.h"
/* /*
* I2C bus addresses 0x50 and 0x51 are normally an EEPROM, which is * I2C bus addresses 0x50 and 0x51 are normally an EEPROM, which is
* specified to be present in SFP modules. These correspond with PHY * specified to be present in SFP modules. These correspond with PHY
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/jiffies.h> #include <linux/jiffies.h>
#include <linux/mdio/mdio-i2c.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/of.h> #include <linux/of.h>
...@@ -16,7 +17,6 @@ ...@@ -16,7 +17,6 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include "mdio-i2c.h"
#include "sfp.h" #include "sfp.h"
#include "swphy.h" #include "swphy.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment