commit | 0969abaa5093ef958540c140f86fb6dd46cfa61f | [log] [tgz] |
---|---|---|
author | Quentin Schulz <quentin.schulz@bootlin.com> | Mon Sep 03 10:48:48 2018 +0200 |
committer | David S. Miller <davem@davemloft.net> | Tue Sep 04 10:47:53 2018 -0700 |
tree | bf820688c4860775b58875e0c57585bcbc831fd1 | |
parent | 11bfdabb7ff572935fb110df345ffe946eda905e [diff] |
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>