]> asedeno.scripts.mit.edu Git - linux.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)
commit0969abaa5093ef958540c140f86fb6dd46cfa61f
treebf820688c4860775b58875e0c57585bcbc831fd1
parent11bfdabb7ff572935fb110df345ffe946eda905e
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