OSDN Git Service

net: phy: marvell: Consolidate setting the phy-mode
authorAndrew Lunn <andrew@lunn.ch>
Sun, 30 Jul 2017 20:41:47 +0000 (22:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Aug 2017 01:00:23 +0000 (18:00 -0700)
commit865b813aa273cd411066d05c47154d5d1490eac7
treed9e5587d00157c6da9c48d234c9507cea18731ea
parent61111598b08bcdc84688de81c59605d56b197fbf
net: phy: marvell: Consolidate setting the phy-mode

The same code is repeated a few times. Refactor into a helped.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c