]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mscc: factorize code for LEDs mode
authorQuentin Schulz <quentin.schulz@bootlin.com>
Mon, 3 Sep 2018 08:48:47 +0000 (10:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2018 17:47:53 +0000 (10:47 -0700)
commit51e6f61c8abd47dbc24eb69475586ad23070cc1d
tree0cf7b08a41e5170fb8b5a85d318970ef0c421601
parentef929c6668089a1922be0ba4f3f484115563a751
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>
drivers/net/phy/mscc.c