summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChaitanya Bandi <bandik@nvidia.com>2012-12-26 14:29:08 +0530
committerMandar Padmawar <mpadmawar@nvidia.com>2012-12-30 21:50:40 -0800
commit1f44ec8a6adc31a6de13db85a437617883bff71d (patch)
treee8fc960c8cd3a27a7dc7fbf8d732f4c900d8ad05 /include
parent29c1efd310c3c7a29fc46adcce7e425b360583e7 (diff)
backlight: max8831: Add support for EDP
Added EDP support for MAX8831 backlight chip Bug 1159966 Change-Id: Ie4553c054caeac6e7ff58ca7ac4cca9ed0f3eced Signed-off-by: Chaitanya Bandi <bandik@nvidia.com> Reviewed-on: http://git-master/r/174234 Reviewed-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'include')
-rw-r--r--include/linux/max8831_backlight.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/max8831_backlight.h b/include/linux/max8831_backlight.h
index 1b5fb458f6e0..a2f9c8010115 100644
--- a/include/linux/max8831_backlight.h
+++ b/include/linux/max8831_backlight.h
@@ -6,6 +6,23 @@
#include <linux/backlight.h>
+enum max8831_edp_states {
+ MAX8831_EDP_NEG_3,
+ MAX8831_EDP_NEG_2,
+ MAX8831_EDP_NEG_1,
+ MAX8831_EDP_ZERO,
+ MAX8831_EDP_1,
+ MAX8831_EDP_2,
+ MAX8831_EDP_3,
+ MAX8831_EDP_4,
+ MAX8831_EDP_5,
+ MAX8831_EDP_6,
+ MAX8831_EDP_7,
+ MAX8831_EDP_NUM_STATES,
+};
+
+#define MAX8831_EDP_BRIGHTNESS_UNIT 25
+
struct platform_max8831_backlight_data {
int id;
const char *name;
@@ -13,6 +30,8 @@ struct platform_max8831_backlight_data {
unsigned int dft_brightness;
int (*notify)(struct device *dev, int brightness);
bool (*is_powered)(void);
+ unsigned int edp_states[MAX8831_EDP_NUM_STATES];
+ unsigned int edp_brightness[MAX8831_EDP_NUM_STATES];
};
#endif