net: dsa: felix: remove prevalidate_phy_mode interface
authorColin Foster <colin.foster@in-advantage.com>
Sat, 26 Feb 2022 22:36:50 +0000 (14:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Feb 2022 11:53:10 +0000 (11:53 +0000)
commitacf242fc739e8697f6231fe7b0d7078e9649a31b
tree07c1b87efef778c2e9b040154b490dbbaf588b48
parent688a5efe0ced8e2d33624b475ecc96d31020a313
net: dsa: felix: remove prevalidate_phy_mode interface

All users of the felix driver were creating their own prevalidate_phy_mode
function. The same logic can be performed in a more general way by using a
simple array of bit fields.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Suggested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix.c
drivers/net/dsa/ocelot/felix.h
drivers/net/dsa/ocelot/felix_vsc9959.c
drivers/net/dsa/ocelot/seville_vsc9953.c