diff options
author | Jani Nikula <jani.nikula@intel.com> | 2013-04-02 08:48:09 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-04-02 09:49:00 -0400 |
commit | 31ad8ec6a6145f9ac978a112801dbde33d44b9d1 (patch) | |
tree | 8e9c3608d424440d962a5e2cf25aedcff2d65068 /drivers/gpu/drm/i915/i915_drv.h | |
parent | 8a5c2ae753c588bcb2a4e38d1c6a39865dbf1ff3 (diff) |
drm/i915: group backlight related stuff into a struct
No functional changes.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 2962a9ab44d5..5e38a2cf95f4 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -939,9 +939,14 @@ typedef struct drm_i915_private { | |||
939 | struct intel_overlay *overlay; | 939 | struct intel_overlay *overlay; |
940 | unsigned int sprite_scaling_enabled; | 940 | unsigned int sprite_scaling_enabled; |
941 | 941 | ||
942 | /* backlight */ | ||
943 | struct { | ||
944 | int level; | ||
945 | bool enabled; | ||
946 | struct backlight_device *device; | ||
947 | } backlight; | ||
948 | |||
942 | /* LVDS info */ | 949 | /* LVDS info */ |
943 | int backlight_level; /* restore backlight to this value */ | ||
944 | bool backlight_enabled; | ||
945 | struct drm_display_mode *lfp_lvds_vbt_mode; /* if any */ | 950 | struct drm_display_mode *lfp_lvds_vbt_mode; /* if any */ |
946 | struct drm_display_mode *sdvo_lvds_vbt_mode; /* if any */ | 951 | struct drm_display_mode *sdvo_lvds_vbt_mode; /* if any */ |
947 | 952 | ||
@@ -1043,8 +1048,6 @@ typedef struct drm_i915_private { | |||
1043 | */ | 1048 | */ |
1044 | struct work_struct console_resume_work; | 1049 | struct work_struct console_resume_work; |
1045 | 1050 | ||
1046 | struct backlight_device *backlight; | ||
1047 | |||
1048 | struct drm_property *broadcast_rgb_property; | 1051 | struct drm_property *broadcast_rgb_property; |
1049 | struct drm_property *force_audio_property; | 1052 | struct drm_property *force_audio_property; |
1050 | 1053 | ||