Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
leds-gpio: Implement the brightness_get method
The power LED uses some clever logic that means it is driven by a voltage measuring circuit when configured as input, otherwise it is driven by the GPIO output value. This patch wires up the brightness_get method for leds-gpio so that user-space can monitor the LED value via /sys/class/gpio/led1/brightness. Using the input trigger this returns an indication of the system power health, otherwise it is just whatever value the trigger has written most recently. See: #1064
- Loading branch information