diff options
Diffstat (limited to 'include/linux/pwm_backlight.h')
| -rw-r--r-- | include/linux/pwm_backlight.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/pwm_backlight.h b/include/linux/pwm_backlight.h index 56f4a866539a..2de2e275b2cb 100644 --- a/include/linux/pwm_backlight.h +++ b/include/linux/pwm_backlight.h | |||
| @@ -6,6 +6,9 @@ | |||
| 6 | 6 | ||
| 7 | #include <linux/backlight.h> | 7 | #include <linux/backlight.h> |
| 8 | 8 | ||
| 9 | /* TODO: convert to gpiod_*() API once it has been merged */ | ||
| 10 | #define PWM_BACKLIGHT_GPIO_ACTIVE_LOW (1 << 0) | ||
| 11 | |||
| 9 | struct platform_pwm_backlight_data { | 12 | struct platform_pwm_backlight_data { |
| 10 | int pwm_id; | 13 | int pwm_id; |
| 11 | unsigned int max_brightness; | 14 | unsigned int max_brightness; |
| @@ -13,6 +16,8 @@ struct platform_pwm_backlight_data { | |||
| 13 | unsigned int lth_brightness; | 16 | unsigned int lth_brightness; |
| 14 | unsigned int pwm_period_ns; | 17 | unsigned int pwm_period_ns; |
| 15 | unsigned int *levels; | 18 | unsigned int *levels; |
| 19 | int enable_gpio; | ||
| 20 | unsigned long enable_gpio_flags; | ||
| 16 | int (*init)(struct device *dev); | 21 | int (*init)(struct device *dev); |
| 17 | int (*notify)(struct device *dev, int brightness); | 22 | int (*notify)(struct device *dev, int brightness); |
| 18 | void (*notify_after)(struct device *dev, int brightness); | 23 | void (*notify_after)(struct device *dev, int brightness); |
