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>
This commit is contained in:

committed by
David S. Miller

parent
2fa4e4b799
commit
fcba68bd75
16
include/linux/mdio/mdio-i2c.h
Normal file
16
include/linux/mdio/mdio-i2c.h
Normal file
@@ -0,0 +1,16 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* MDIO I2C bridge
|
||||
*
|
||||
* Copyright (C) 2015 Russell King
|
||||
*/
|
||||
#ifndef MDIO_I2C_H
|
||||
#define MDIO_I2C_H
|
||||
|
||||
struct device;
|
||||
struct i2c_adapter;
|
||||
struct mii_bus;
|
||||
|
||||
struct mii_bus *mdio_i2c_alloc(struct device *parent, struct i2c_adapter *i2c);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user