diff mbox series

[net-next,v2,2/5] net/phy/mdio-i2c: Move header file to include/linux

Message ID 20200816185611.2290056-3-andrew@lunn.ch
State New
Headers show
Series [net-next,v2,1/5] net: pcs: Move XPCS into new PCS subdirectory | expand

Commit Message

Andrew Lunn Aug. 16, 2020, 6:56 p.m. UTC
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%)
diff mbox series

Patch

diff --git a/drivers/net/phy/mdio-i2c.c b/drivers/net/phy/mdio-i2c.c
index 0746e2cc39ae..7f2f4f5a1ed1 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-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
diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c
index c24b0e83dd32..f75c7cc8f4fa 100644
--- a/drivers/net/phy/sfp.c
+++ b/drivers/net/phy/sfp.c
@@ -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"
 
diff --git a/drivers/net/phy/mdio-i2c.h b/include/linux/mdio-i2c.h
similarity index 100%
rename from drivers/net/phy/mdio-i2c.h
rename to include/linux/mdio-i2c.h