mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
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>
16 lines
282 B
C
16 lines
282 B
C
/* 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
|