summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPhilipp Zabel <philipp.zabel@gmail.com>2008-05-22 15:18:40 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-07-03 14:25:05 +0200
commit3b73125af69f93972625f4b655675f42ca4274eb (patch)
tree95ae990ed5475269c106060bf1751f5aeea95532 /include
parent[ARM] pxa: make LogicPD 270 use the generic PWM backlight driver (diff)
downloadlinux-3b73125af69f93972625f4b655675f42ca4274eb.tar.xz
linux-3b73125af69f93972625f4b655675f42ca4274eb.zip
[ARM] 5044/1: pwm_bl: add init/notify/exit callbacks
This allows platform code to manipulate GPIOs and brightness level as needed. Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pwm_backlight.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pwm_backlight.h b/include/linux/pwm_backlight.h
index aeeffedbe822..7a9754c96775 100644
--- a/include/linux/pwm_backlight.h
+++ b/include/linux/pwm_backlight.h
@@ -9,6 +9,9 @@ struct platform_pwm_backlight_data {
unsigned int max_brightness;
unsigned int dft_brightness;
unsigned int pwm_period_ns;
+ int (*init)(struct device *dev);
+ int (*notify)(int brightness);
+ void (*exit)(struct device *dev);
};
#endif