]> git.karo-electronics.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>
Wed, 28 Oct 2015 11:12:23 +0000 (12:12 +0100)
commit18c89d167af5235ed980bb4e35d3e0625933bfb8
tree8255823817667988d9fa48ce35c2a9b6e4177d64
parentcf71c5ba2584590c70c7a52981f3659254479853
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