net: sfp: derive interface mode from ethtool link modes
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 11 Dec 2019 10:55:59 +0000 (10:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Dec 2019 19:53:41 +0000 (11:53 -0800)
commita4516c7053b96fed98a0439a9226983b5275474b
treeac7628792fbd69eb7b5645f7fc9bf5c239ecd05b
parentfa2de660a8d001fdce6209534b60b85b87cda84f
net: sfp: derive interface mode from ethtool link modes

We don't need the EEPROM ID to derive the phy interface mode as we can
derive it merely from the ethtool link modes.  Remove the EEPROM ID
argument to sfp_select_interface().

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell10g.c
drivers/net/phy/phylink.c
drivers/net/phy/sfp-bus.c
include/linux/sfp.h