@@ -10,10 +10,9 @@
* of their settings.
*/
#include <linux/i2c.h>
+#include <linux/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
@@ -7,6 +7,7 @@
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/jiffies.h>
+#include <linux/mdio-i2c.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/of.h>
@@ -16,7 +17,6 @@
#include <linux/slab.h>
#include <linux/workqueue.h>
-#include "mdio-i2c.h"
#include "sfp.h"
#include "swphy.h"
similarity index 100%
rename from drivers/net/phy/mdio-i2c.h
rename to include/linux/mdio-i2c.h
In preparation for moving all MDIO drivers into drivers/net/mdio, move the mdio-i2c header file into include/linux so it can be used by both the MDIO driver and the SFP code which instantiates I2C MDIO busses. Signed-off-by: Andrew Lunn <andrew@lunn.ch> --- drivers/net/phy/mdio-i2c.c | 3 +-- drivers/net/phy/sfp.c | 2 +- {drivers/net/phy => include/linux}/mdio-i2c.h | 0 3 files changed, 2 insertions(+), 3 deletions(-) rename {drivers/net/phy => include/linux}/mdio-i2c.h (100%)