]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
leds: netxbig: set led_classdev max_brightness
authorSimon Guinot <simon.guinot@sequanux.org>
Sat, 26 Sep 2015 21:02:38 +0000 (23:02 +0200)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Tue, 3 Nov 2015 07:59:36 +0000 (08:59 +0100)
commit7b9d9d88158e99a6a17a292ec4ec47105a771c4f
treed4a06aab358515b0601f565113334c7f40187165
parentcd0109555bd118ddb8ee0df0ca5d8f9bd3d7a77f
leds: netxbig: set led_classdev max_brightness

This patch sets the led_classdev max_brightness to the maximum level
value supported by hardware. This allows to get rid of the brightness
conversion operation (from software [0:LED_FULL] to hardware ranges) in
brightness_set().

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-netxbig.c