eric miao | 42796d3 | 2008-04-14 09:35:08 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Generic PWM backlight driver data - see drivers/video/backlight/pwm_bl.c |
| 3 | */ |
| 4 | #ifndef __LINUX_PWM_BACKLIGHT_H |
| 5 | #define __LINUX_PWM_BACKLIGHT_H |
| 6 | |
Robert Morell | ef0a5e8 | 2011-03-22 16:30:31 -0700 | [diff] [blame] | 7 | #include <linux/backlight.h> |
| 8 | |
eric miao | 42796d3 | 2008-04-14 09:35:08 +0100 | [diff] [blame] | 9 | struct platform_pwm_backlight_data { |
| 10 | int pwm_id; |
| 11 | unsigned int max_brightness; |
| 12 | unsigned int dft_brightness; |
Arun Murthy | fef7764 | 2010-11-11 14:05:28 -0800 | [diff] [blame] | 13 | unsigned int lth_brightness; |
eric miao | 42796d3 | 2008-04-14 09:35:08 +0100 | [diff] [blame] | 14 | unsigned int pwm_period_ns; |
Thierry Reding | 3e3ed6c | 2011-12-16 21:25:29 +0100 | [diff] [blame] | 15 | unsigned int *levels; |
Alexandre Courbot | 257462d | 2014-02-27 14:53:34 +0900 | [diff] [blame] | 16 | /* TODO remove once all users are switched to gpiod_* API */ |
Thierry Reding | 2b9b162 | 2013-08-30 11:51:22 +0200 | [diff] [blame] | 17 | int enable_gpio; |
Philipp Zabel | 3b73125 | 2008-05-22 14:18:40 +0100 | [diff] [blame] | 18 | int (*init)(struct device *dev); |
Ben Dooks | cfc3899 | 2009-11-10 17:20:40 +0000 | [diff] [blame] | 19 | int (*notify)(struct device *dev, int brightness); |
Dilan Lee | cc7993f | 2011-08-25 15:59:17 -0700 | [diff] [blame] | 20 | void (*notify_after)(struct device *dev, int brightness); |
Philipp Zabel | 3b73125 | 2008-05-22 14:18:40 +0100 | [diff] [blame] | 21 | void (*exit)(struct device *dev); |
Robert Morell | ef0a5e8 | 2011-03-22 16:30:31 -0700 | [diff] [blame] | 22 | int (*check_fb)(struct device *dev, struct fb_info *info); |
eric miao | 42796d3 | 2008-04-14 09:35:08 +0100 | [diff] [blame] | 23 | }; |
| 24 | |
| 25 | #endif |