OSDN Git Service

net: phy: marvell: Add software control of the LEDs
authorAndrew Lunn <andrew@lunn.ch>
Mon, 17 Apr 2023 15:17:29 +0000 (17:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Apr 2023 11:59:16 +0000 (12:59 +0100)
commit2d3960e58ef7c83fe1dbf952f056b9e906cb6df8
treef4b5c4965ec0ffec9ceffde61165bde827960fc2
parent684818189b04b095b34964ed4a3ea5249a840eab
net: phy: marvell: Add software control of the LEDs

Add a brightness function, so the LEDs can be controlled from
software using the standard Linux LED infrastructure.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c