diff options
author | Dylan Van Assche <me@dylanvanassche.be> | 2020-12-29 19:15:12 +0100 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2021-02-03 15:34:37 +0100 |
commit | d86464527681b72941939258ef68904cae6f8136 (patch) | |
tree | ef0b35b97ba7540c6fc0689e7d165872cc6dc39a /drivers/leds/led-core.c | |
parent | leds: lm3533: Switch to using the new API kobj_to_dev() (diff) | |
download | linux-dev-d86464527681b72941939258ef68904cae6f8136.tar.xz linux-dev-d86464527681b72941939258ef68904cae6f8136.zip |
leds: gpio: Set max brightness to 1
GPIO LEDs only know 2 states: ON or OFF and do not have PWM capabilities.
However, the max brightness is reported as 255.
This patch sets the max brightness value of a GPIO controlled LED to 1.
Tested on my PinePhone 1.2.
Signed-off-by: Dylan Van Assche <me@dylanvanassche.be>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers/leds/led-core.c')
0 files changed, 0 insertions, 0 deletions