diff options
author | Dominik Sliwa <dominik.sliwa@toradex.com> | 2018-03-27 15:36:25 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-03-28 18:39:27 +0200 |
commit | 2d9eb8a926dadffb42b2bb0e369c71ba87405ced (patch) | |
tree | 069cb5312e1ea5497d38e04fbdd3211bc049b4d1 /include | |
parent | b3d86431aaec95983cd3cbc70fa687d6f27dc94b (diff) |
Revert "EDP: remove old system EDP framework (pwm backlight driver)"
This reverts commit 08a13bacb43f206239ae0f1ccbe37325993e2b1b.
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pwm_backlight.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/pwm_backlight.h b/include/linux/pwm_backlight.h index bf19167960fe..c4d55510c7bd 100644 --- a/include/linux/pwm_backlight.h +++ b/include/linux/pwm_backlight.h @@ -18,6 +18,22 @@ #include <linux/backlight.h> +enum pwm_bl_edp_states { + PWM_BL_EDP_NEG_3, + PWM_BL_EDP_NEG_2, + PWM_BL_EDP_NEG_1, + PWM_BL_EDP_ZERO, + PWM_BL_EDP_1, + PWM_BL_EDP_2, + PWM_BL_EDP_3, + PWM_BL_EDP_4, + PWM_BL_EDP_5, + PWM_BL_EDP_6, + PWM_BL_EDP_NUM_STATES, +}; + +#define PWM_BL_EDP_BRIGHTNESS_UNIT 25 + struct platform_pwm_backlight_data { int pwm_id; unsigned int max_brightness; @@ -31,6 +47,8 @@ struct platform_pwm_backlight_data { void (*notify_after)(struct device *dev, int brightness); void (*exit)(struct device *dev); int (*check_fb)(struct device *dev, struct fb_info *info); + unsigned int *edp_states; + unsigned int *edp_brightness; }; #endif |