Blame view
include/linux/pwm_backlight.h
701 Bytes
42796d37d
|
1 2 3 4 5 |
/* * Generic PWM backlight driver data - see drivers/video/backlight/pwm_bl.c */ #ifndef __LINUX_PWM_BACKLIGHT_H #define __LINUX_PWM_BACKLIGHT_H |
ef0a5e80f
|
6 |
#include <linux/backlight.h> |
42796d37d
|
7 8 9 10 |
struct platform_pwm_backlight_data { int pwm_id; unsigned int max_brightness; unsigned int dft_brightness; |
fef7764f8
|
11 |
unsigned int lth_brightness; |
42796d37d
|
12 |
unsigned int pwm_period_ns; |
3e3ed6cdc
|
13 |
unsigned int *levels; |
257462dbf
|
14 |
/* TODO remove once all users are switched to gpiod_* API */ |
2b9b16203
|
15 |
int enable_gpio; |
3b73125af
|
16 |
int (*init)(struct device *dev); |
cfc3899fc
|
17 |
int (*notify)(struct device *dev, int brightness); |
cc7993f64
|
18 |
void (*notify_after)(struct device *dev, int brightness); |
3b73125af
|
19 |
void (*exit)(struct device *dev); |
ef0a5e80f
|
20 |
int (*check_fb)(struct device *dev, struct fb_info *info); |
42796d37d
|
21 22 23 |
}; #endif |