commit | 11bfdabb7ff572935fb110df345ffe946eda905e | [log] [tgz] |
---|---|---|
author | Quentin Schulz <quentin.schulz@bootlin.com> | Mon Sep 03 10:48:47 2018 +0200 |
committer | David S. Miller <davem@davemloft.net> | Tue Sep 04 10:47:53 2018 -0700 |
tree | 0cf7b08a41e5170fb8b5a85d318970ef0c421601 | |
parent | 802869f4e5423457aa547ea3330eff34b9e16d68 [diff] |
net: phy: mscc: factorize code for LEDs mode LEDs modes are set the same way, except they are offset by 4 times the index of the LED. Let's factorize all the code so that it's easier to add support for the 4 LEDs of the VSC8584 PHY. Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>