Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
eric miao | 42796d3 | 2008-04-14 09:35:08 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Generic PWM backlight driver data - see drivers/video/backlight/pwm_bl.c |
| 4 | */ |
| 5 | #ifndef __LINUX_PWM_BACKLIGHT_H |
| 6 | #define __LINUX_PWM_BACKLIGHT_H |
| 7 | |
Robert Morell | ef0a5e8 | 2011-03-22 16:30:31 -0700 | [diff] [blame] | 8 | #include <linux/backlight.h> |
| 9 | |
eric miao | 42796d3 | 2008-04-14 09:35:08 +0100 | [diff] [blame] | 10 | struct platform_pwm_backlight_data { |
| 11 | int pwm_id; |
| 12 | unsigned int max_brightness; |
| 13 | unsigned int dft_brightness; |
Arun Murthy | fef7764 | 2010-11-11 14:05:28 -0800 | [diff] [blame] | 14 | unsigned int lth_brightness; |
eric miao | 42796d3 | 2008-04-14 09:35:08 +0100 | [diff] [blame] | 15 | unsigned int pwm_period_ns; |
Thierry Reding | 3e3ed6c | 2011-12-16 21:25:29 +0100 | [diff] [blame] | 16 | unsigned int *levels; |
Enric Balletbo i Serra | 3157694 | 2018-03-28 19:03:25 +0200 | [diff] [blame] | 17 | unsigned int post_pwm_on_delay; |
| 18 | unsigned int pwm_off_delay; |
Philipp Zabel | 3b73125 | 2008-05-22 14:18:40 +0100 | [diff] [blame] | 19 | int (*init)(struct device *dev); |
Ben Dooks | cfc3899 | 2009-11-10 17:20:40 +0000 | [diff] [blame] | 20 | int (*notify)(struct device *dev, int brightness); |
Dilan Lee | cc7993f | 2011-08-25 15:59:17 -0700 | [diff] [blame] | 21 | void (*notify_after)(struct device *dev, int brightness); |
Philipp Zabel | 3b73125 | 2008-05-22 14:18:40 +0100 | [diff] [blame] | 22 | void (*exit)(struct device *dev); |
Robert Morell | ef0a5e8 | 2011-03-22 16:30:31 -0700 | [diff] [blame] | 23 | int (*check_fb)(struct device *dev, struct fb_info *info); |
eric miao | 42796d3 | 2008-04-14 09:35:08 +0100 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | #endif |