net: phy: mscc: use phy_package_shared
authorMichael Walle <michael@walle.cc>
Wed, 6 May 2020 14:53:15 +0000 (16:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 May 2020 21:53:29 +0000 (14:53 -0700)
commitdeb04e9c0ff2b42cadf198c3204b13025c9bd72e
tree7bec2db6a012be52e301fb8320d5131ed0c0493b
parentdc9989f173289f376d06cb289ae0bd46c6ac8017
net: phy: mscc: use phy_package_shared

Use the new phy_package_shared common storage to ease the package
initialization and to access the global registers.

Signed-off-by: Michael Walle <michael@walle.cc>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-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/mscc/mscc.h
drivers/net/phy/mscc/mscc_main.c