led: use max led value in case of led trigger
The led_poller function blink_func uses for flashing and blinking only the
values 1/0 for setting the leds. In case of an e.g. gpio led this is true. But
in case of pwm driven leds, where someone could dimm the leds, the value of 1
dimms the led. Use the max value for blinking and flashing of a led when enabling.

Signed-off-by: Oleg Karfich <oleg.karfich@wago.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 500bc99 commit b0af360ccc38cbf3dd5b947c5948445bac8dd3ce
@Oleg.Karfich@wago.com Oleg.Karfich@wago.com authored on 5 Sep 2018
Sascha Hauer committed on 10 Sep 2018
Showing 1 changed file
View
drivers/led/core.c