leds: Don't allow brightness values greater than max_brightness
authorGabriele Mazzotta <gabriele.mzt@gmail.com>
Tue, 23 Dec 2014 18:59:23 +0000 (10:59 -0800)
committerBryan Wu <cooloney@gmail.com>
Wed, 14 Jan 2015 18:40:19 +0000 (10:40 -0800)
commit56d06fdee534124f79b51ff92232373b783cddc2
tree126c70b1e945ab98c4458182652a556cdf094ef9
parent13b695f3c41bc691028f255eae2f8e1938377565
leds: Don't allow brightness values greater than max_brightness

Since commit 4d71a4a12b13 ("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>
drivers/leds/leds.h
This page took 0.024707 seconds and 5 git commands to generate.