Re: [PATCH] leds: pwm: fix max_brightness works abnormal when active_low

2019-02-10 Thread Pavel Machek
On Sun 2019-02-10 20:37:09, Yisheng Xie wrote: > When leds-pwm is active_low, smaller number of duty kept in led_dat > means less brighness, so we should disable pwm when led_dat->duty is > equal to period instead of zero, which means max_brightness. Will all pwm drivers leave the signal 'low' wh

[PATCH] leds: pwm: fix max_brightness works abnormal when active_low

2019-02-10 Thread Yisheng Xie
When leds-pwm is active_low, smaller number of duty kept in led_dat means less brighness, so we should disable pwm when led_dat->duty is equal to period instead of zero, which means max_brightness. Signed-off-by: Yisheng Xie --- drivers/leds/leds-pwm.c | 2 +- 1 file changed, 1 insertion(+), 1