phy: phy_{read|write}_mmd_indirect: get addr from phydev
authorAndrew Lunn <andrew@lunn.ch>
Wed, 6 Jan 2016 19:11:12 +0000 (20:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Jan 2016 19:31:25 +0000 (14:31 -0500)
commit053e7e169229adebbc27fc176c5369398e9f5eba
treefb869b13bc6d62bcc876306ecb65b292831e9421
parent04521bf840482af30a6ed54835cefadcecdd56da
phy: phy_{read|write}_mmd_indirect: get addr from phydev

The address of the device can be determined from the phydev structure,
rather than passing it as a parameter.

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>
drivers/net/phy/bcm-phy-lib.c
drivers/net/phy/dp83867.c
drivers/net/phy/microchip.c
drivers/net/phy/phy.c
include/linux/phy.h