net: phy: phy_device: Call into the PHY driver to set LED brightness
authorAndrew Lunn <andrew@lunn.ch>
Mon, 17 Apr 2023 15:17:28 +0000 (17:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Apr 2023 11:59:16 +0000 (12:59 +0100)
commit684818189b04b095b34964ed4a3ea5249a840eab
treeff375d76a16294ae3a4baa6abed4d471503b589b
parent01e5b728e9e43ae444e0369695a5f72209906464
net: phy: phy_device: Call into the PHY driver to set LED brightness

Linux LEDs can be software controlled via the brightness file in /sys.
LED drivers need to implement a brightness_set function which the core
will call. Implement an intermediary in phy_device, which will call
into the phy driver if it implements the necessary function.

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/phy_device.c
include/linux/phy.h