diff options
author | Andrew Lunn <andrew@lunn.ch> | 2016-01-06 22:11:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-07 22:31:27 +0300 |
commit | e76a4957c5ee5cf69cea89d450c29c536e77ce9e (patch) | |
tree | 3367354264ab950a1210556f7712a362420679c0 /include/linux/mdio.h | |
parent | be01da72b1b832b89fbdf59ae6f1b60e53ca2987 (diff) | |
download | linux-e76a4957c5ee5cf69cea89d450c29c536e77ce9e.tar.xz |
phy: Move phy specific bus match into phy_device
Matching a driver to a device has both generic parts, and parts which
are specific to PHY devices. Move the PHY specific parts into
phy_device.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mdio.h')
-rw-r--r-- | include/linux/mdio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mdio.h b/include/linux/mdio.h index 9f844d372ed5..0690359e55a5 100644 --- a/include/linux/mdio.h +++ b/include/linux/mdio.h @@ -17,6 +17,7 @@ struct mdio_device { struct device dev; const struct dev_pm_ops *pm_ops; struct mii_bus *bus; + int (*bus_match)(struct device *dev, struct device_driver *drv); /* Bus address of the MDIO device (0-31) */ int addr; int flags; |