Skip to content
Commit d8646452 authored by Dylan Van Assche's avatar Dylan Van Assche Committed by Pavel Machek
Browse files

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: default avatarDylan Van Assche <me@dylanvanassche.be>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent 6c3384d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment