summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2018-06-20 11:47:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-06-21 12:57:13 +0200
commit898ec202d06ccf89506b9f64bea438a1974b4687 (patch)
tree886a5b17d1072579232be47e0304005aa618f1a5 /include
parentbe940f1a513b5167963174eca1d9509aaddda2fe (diff)
downloadbarebox-898ec202d06ccf89506b9f64bea438a1974b4687.tar.gz
barebox-898ec202d06ccf89506b9f64bea438a1974b4687.tar.xz
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>
Diffstat (limited to 'include')
-rw-r--r--include/video/backlight.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/video/backlight.h b/include/video/backlight.h
index 8dc49dc113..afa384cc9a 100644
--- a/include/video/backlight.h
+++ b/include/video/backlight.h
@@ -7,6 +7,7 @@ struct backlight_device {
int brightness_cur;
int brightness_max;
int brightness_default;
+ int slew_time_ms; /* time to stretch brightness changes */
int (*brightness_set)(struct backlight_device *, int brightness);
struct list_head list;
struct device_d dev;