diff options
author | Philipp Zabel <philipp.zabel@gmail.com> | 2008-05-22 09:18:40 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-07-03 08:25:05 -0400 |
commit | 3b73125af69f93972625f4b655675f42ca4274eb (patch) | |
tree | 95ae990ed5475269c106060bf1751f5aeea95532 /include | |
parent | 4a73071947d21f3aa39fa3a4bac104aaab94cfca (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')
-rw-r--r-- | include/linux/pwm_backlight.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pwm_backlight.h b/include/linux/pwm_backlight.h index aeeffedbe82..7a9754c9677 100644 --- a/include/linux/pwm_backlight.h +++ b/include/linux/pwm_backlight.h | |||
@@ -9,6 +9,9 @@ struct platform_pwm_backlight_data { | |||
9 | unsigned int max_brightness; | 9 | unsigned int max_brightness; |
10 | unsigned int dft_brightness; | 10 | unsigned int dft_brightness; |
11 | unsigned int pwm_period_ns; | 11 | unsigned int pwm_period_ns; |
12 | int (*init)(struct device *dev); | ||
13 | int (*notify)(int brightness); | ||
14 | void (*exit)(struct device *dev); | ||
12 | }; | 15 | }; |
13 | 16 | ||
14 | #endif | 17 | #endif |