diff options
author | 2023-04-17 17:17:27 +0200 | |
---|---|---|
committer | 2023-04-19 12:59:16 +0100 | |
commit | 01e5b728e9e43ae444e0369695a5f72209906464 (patch) | |
tree | cd0f31d6864b912b9c17c76a5bfa6e52cfabb4be /tools/perf/scripts/python/export-to-postgresql.py | |
parent | leds: Provide stubs for when CLASS_LED & NEW_LEDS are disabled (diff) | |
download | linux-rng-01e5b728e9e43ae444e0369695a5f72209906464.tar.xz linux-rng-01e5b728e9e43ae444e0369695a5f72209906464.zip |
net: phy: Add a binding for PHY LEDs
Define common binding parsing for all PHY drivers with LEDs using
phylib. Parse the DT as part of the phy_probe and add LEDs to the
linux LED class infrastructure. For the moment, provide a dummy
brightness function, which will later be replaced with a call into the
PHY driver. This allows testing since the LED core might otherwise
reject an LED whose brightness cannot be set.
Add a dependency on LED_CLASS. It either needs to be built in, or not
enabled, since a modular build can result in linker errors.
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions