Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
leds: Don't allow brightness values greater than max_brightness
Since commit 4d71a4a ("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: Gabriele Mazzotta <gabriele.mzt@gmail.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>
- Loading branch information