aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/backlight.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/backlight.h')
-rw-r--r--include/linux/backlight.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/backlight.h b/include/linux/backlight.h
index 0b5897446dca..c7d6b2e8c3b5 100644
--- a/include/linux/backlight.h
+++ b/include/linux/backlight.h
@@ -46,6 +46,12 @@ enum backlight_notification {
46 BACKLIGHT_UNREGISTERED, 46 BACKLIGHT_UNREGISTERED,
47}; 47};
48 48
49enum backlight_scale {
50 BACKLIGHT_SCALE_UNKNOWN = 0,
51 BACKLIGHT_SCALE_LINEAR,
52 BACKLIGHT_SCALE_NON_LINEAR,
53};
54
49struct backlight_device; 55struct backlight_device;
50struct fb_info; 56struct fb_info;
51 57
@@ -80,6 +86,8 @@ struct backlight_properties {
80 enum backlight_type type; 86 enum backlight_type type;
81 /* Flags used to signal drivers of state changes */ 87 /* Flags used to signal drivers of state changes */
82 unsigned int state; 88 unsigned int state;
89 /* Type of the brightness scale (linear, non-linear, ...) */
90 enum backlight_scale scale;
83 91
84#define BL_CORE_SUSPENDED (1 << 0) /* backlight is suspended */ 92#define BL_CORE_SUSPENDED (1 << 0) /* backlight is suspended */
85#define BL_CORE_FBBLANK (1 << 1) /* backlight is under an fb blank event */ 93#define BL_CORE_FBBLANK (1 << 1) /* backlight is under an fb blank event */