net: phy: mscc: the extended page access register is 16 bits
authorQuentin Schulz <quentin.schulz@bootlin.com>
Mon, 30 Jul 2018 12:53:13 +0000 (14:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jul 2018 16:42:32 +0000 (09:42 -0700)
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>
drivers/net/phy/mscc.c

index 650c266..84ca9ff 100644 (file)
@@ -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;