aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/mdio_bus.c
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2007-03-06 05:41:48 -0500
committerJeff Garzik <jeff@garzik.org>2007-04-28 11:00:57 -0400
commitb3df0da886ffdb3e70c3197f589e959e5f8c9c04 (patch)
tree7a1f564d31835f31ebab9da370dace187b0aefc6 /drivers/net/phy/mdio_bus.c
parent56e1393f82349d8206fe7feb94db96b065c55e51 (diff)
phy layer: add kernel-doc + DocBook
Convert function documentation in drivers/net/phy/ to kernel-doc and add it to DocBook. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/phy/mdio_bus.c')
-rw-r--r--drivers/net/phy/mdio_bus.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c
index b31ce278bf35..fc4aee96cdfd 100644
--- a/drivers/net/phy/mdio_bus.c
+++ b/drivers/net/phy/mdio_bus.c
@@ -35,10 +35,14 @@
35#include <asm/irq.h> 35#include <asm/irq.h>
36#include <asm/uaccess.h> 36#include <asm/uaccess.h>
37 37
38/* mdiobus_register 38/**
39 * mdiobus_register - bring up all the PHYs on a given bus and attach them to bus
40 * @bus: target mii_bus
39 * 41 *
40 * description: Called by a bus driver to bring up all the PHYs 42 * Description: Called by a bus driver to bring up all the PHYs
41 * on a given bus, and attach them to the bus 43 * on a given bus, and attach them to the bus.
44 *
45 * Returns 0 on success or < 0 on error.
42 */ 46 */
43int mdiobus_register(struct mii_bus *bus) 47int mdiobus_register(struct mii_bus *bus)
44{ 48{
@@ -114,10 +118,13 @@ void mdiobus_unregister(struct mii_bus *bus)
114} 118}
115EXPORT_SYMBOL(mdiobus_unregister); 119EXPORT_SYMBOL(mdiobus_unregister);
116 120
117/* mdio_bus_match 121/**
122 * mdio_bus_match - determine if given PHY driver supports the given PHY device
123 * @dev: target PHY device
124 * @drv: given PHY driver
118 * 125 *
119 * description: Given a PHY device, and a PHY driver, return 1 if 126 * Description: Given a PHY device, and a PHY driver, return 1 if
120 * the driver supports the device. Otherwise, return 0 127 * the driver supports the device. Otherwise, return 0.
121 */ 128 */
122static int mdio_bus_match(struct device *dev, struct device_driver *drv) 129static int mdio_bus_match(struct device *dev, struct device_driver *drv)
123{ 130{