aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@bootlin.com>2018-07-30 14:53:13 +0200
committerDavid S. Miller <davem@davemloft.net>2018-07-30 09:42:32 -0700
commit86ff73622a013ceac948390e5920b817e101e0b2 (patch)
tree8654a54592c7c66dec5b602caf06b63b013abc09
parentnet/tls: Use socket data_ready callback on record availability (diff)
downloadlinux-dev-86ff73622a013ceac948390e5920b817e101e0b2.tar.xz
linux-dev-86ff73622a013ceac948390e5920b817e101e0b2.zip
net: phy: mscc: the extended page access register is 16 bits
The Extended Page Access is a 16-bit register, so change the page parameter of vsc85xx_phy_page_set to a u16. Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/phy/mscc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/mscc.c b/drivers/net/phy/mscc.c
index 650c2667d523..84ca9ff40ae0 100644
--- a/drivers/net/phy/mscc.c
+++ b/drivers/net/phy/mscc.c
@@ -123,7 +123,7 @@ static const struct vsc8531_edge_rate_table edge_table[] = {
};
#endif /* CONFIG_OF_MDIO */
-static int vsc85xx_phy_page_set(struct phy_device *phydev, u8 page)
+static int vsc85xx_phy_page_set(struct phy_device *phydev, u16 page)
{
int rc;