summaryrefslogtreecommitdiff
path: root/include/linux/pwm_backlight.h
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2011-12-17 00:25:29 +0400
committerThierry Reding <thierry.reding@avionic-design.de>2012-07-23 15:23:52 +0400
commit3e3ed6cdc49d758719c148a78c8b04c243ef74d0 (patch)
tree4898c961d49967089139c79ff222441a4495dca4 /include/linux/pwm_backlight.h
parent4dce82c1e84007d38747533673c2289bfc6497d2 (diff)
downloadlinux-3e3ed6cdc49d758719c148a78c8b04c243ef74d0.tar.xz
pwm-backlight: Add rudimentary device tree support
This commit adds very basic support for device tree probing. Currently, only a PWM and a list of distinct brightness levels can be specified. Enabling or disabling backlight power via GPIOs is not yet supported. Reviewed-by: Shawn Guo <shawn.guo@linaro.org> Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'include/linux/pwm_backlight.h')
-rw-r--r--include/linux/pwm_backlight.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pwm_backlight.h b/include/linux/pwm_backlight.h
index 63d2df43e61a..56f4a866539a 100644
--- a/include/linux/pwm_backlight.h
+++ b/include/linux/pwm_backlight.h
@@ -12,6 +12,7 @@ struct platform_pwm_backlight_data {
unsigned int dft_brightness;
unsigned int lth_brightness;
unsigned int pwm_period_ns;
+ unsigned int *levels;
int (*init)(struct device *dev);
int (*notify)(struct device *dev, int brightness);
void (*notify_after)(struct device *dev, int brightness);