diff options
Diffstat (limited to 'include/linux/pwm_backlight.h')
-rw-r--r-- | include/linux/pwm_backlight.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/pwm_backlight.h b/include/linux/pwm_backlight.h index 2fc86de2a95f..633ee4b90a5c 100644 --- a/include/linux/pwm_backlight.h +++ b/include/linux/pwm_backlight.h @@ -20,6 +20,7 @@ #define __LINUX_PWM_BACKLIGHT_H #include <linux/backlight.h> +#include <linux/platform_device.h> enum tegra_pwm_bl_edp_states { TEGRA_PWM_BL_EDP_NEG_3, @@ -33,6 +34,11 @@ enum tegra_pwm_bl_edp_states { struct platform_pwm_backlight_data { int pwm_id; + /* + * different brightness can be set + * between charging mode and normal mode + */ + bool is_charged; unsigned int max_brightness; unsigned int dft_brightness; unsigned int lth_brightness; @@ -48,4 +54,17 @@ struct platform_pwm_backlight_data { int (*check_fb)(struct device *dev, struct fb_info *info); }; +struct of_tegra_pwm_bl_devdata { + int (*init)(struct device *dev); + int (*notify)(struct device *dev, int brightness); + void (*notify_after)(struct device *dev, int brightness); + void (*exit)(struct device *dev); + int (*check_fb)(struct device *dev, struct fb_info *info); +}; + +struct platform_pwm_backlight_data + *of_pwm_bl_parse_platform_data(struct platform_device *ndev); + +void pwm_bl_devdata_set_callback(struct device*(*func) + (struct device_node *)); #endif |