Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 56d06fde authored by Gabriele Mazzotta's avatar Gabriele Mazzotta Committed by Bryan Wu
Browse files

leds: Don't allow brightness values greater than max_brightness



Since commit 4d71a4a1 ("leds: Add support for setting brightness in
a synchronous way") the value passed to brightness_set() is no longer
limited to max_brightness and can be different from the internally saved
brightness value.

Signed-off-by: default avatarGabriele Mazzotta <gabriele.mzt@gmail.com>
Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
parent 13b695f3
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