diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2013-12-25 11:50:01 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-01-06 09:42:29 +0100 |
commit | 8ffd4f8c741d695779a91d62d9fe7b4f1e0c7ab2 (patch) | |
tree | 47c6eaae29d952a7ca7b0846daa8011717743d90 /include | |
parent | 8bc54c172131244abbc5adabfd7fee07d8400d8a (diff) | |
download | barebox-8ffd4f8c741d695779a91d62d9fe7b4f1e0c7ab2.tar.gz barebox-8ffd4f8c741d695779a91d62d9fe7b4f1e0c7ab2.tar.xz |
miitool: change behaviour closer to linux' mii-tool
miitool without arguments will try to show status for all phys.
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phy.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 6c9d090f40..9994e1107d 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -94,10 +94,10 @@ int mdiobus_register(struct mii_bus *bus); void mdiobus_unregister(struct mii_bus *bus); struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr); -void mdiobus_detect_all(void); - extern struct list_head mii_bus_list; +int mdiobus_detect(struct device_d *dev); + #define for_each_mii_bus(mii) \ list_for_each_entry(mii, &mii_bus_list, list) |