summaryrefslogtreecommitdiff
path: root/include/linux/pwm_backlight.h
diff options
context:
space:
mode:
authorPhilipp Zabel <philipp.zabel@gmail.com>2008-05-22 14:18:40 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-07-03 13:25:05 +0100
commit3b73125af69f93972625f4b655675f42ca4274eb (patch)
tree95ae990ed5475269c106060bf1751f5aeea95532 /include/linux/pwm_backlight.h
parent4a73071947d21f3aa39fa3a4bac104aaab94cfca (diff)
[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/linux/pwm_backlight.h')
-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