]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mscc: factorize function for getting LED mode from DT
authorQuentin Schulz <quentin.schulz@bootlin.com>
Mon, 3 Sep 2018 08:48:48 +0000 (10:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2018 17:47:53 +0000 (10:47 -0700)
commitbe8639a1e5ab2092315fab4eed7a849032cb214b
treebf820688c4860775b58875e0c57585bcbc831fd1
parent51e6f61c8abd47dbc24eb69475586ad23070cc1d
net: phy: mscc: factorize function for getting LED mode from DT

Microsemi PHYs support different LED modes depending on the variant, so
let's factorize the code so we just have to give the supported modes
while the logic behind getting the mode remains identical.

Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mscc.c