video: backlight: add slew time parameter
Currently the backlight implementation stretches a brightness change over
a period of 100ms. While this is a fine default for PWM backlights, a user
might wish to change this slew time to meet other constraints or even
completely disable it for some backlight devices.

Add a parameter and provide the default value from the backlight device.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent be940f1 commit 898ec202d06ccf89506b9f64bea438a1974b4687
@Lucas Stach Lucas Stach authored on 20 Jun 2018
Sascha Hauer committed on 21 Jun 2018
Showing 3 changed files
View
drivers/video/backlight-pwm.c
View
drivers/video/backlight.c
View
include/video/backlight.h