diff options
author | Jani Nikula <jani.nikula@intel.com> | 2013-11-08 09:48:54 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-11-12 18:07:43 -0500 |
commit | 58c68779e48fa6d60b97fadc3dcac61a6c318c4c (patch) | |
tree | f75bc7730e8bf3b3490e5efe01c890bf638b33d0 /drivers/gpu/drm/i915/i915_drv.h | |
parent | db31af1d4e815e141295b0bdf8da3e77885001d5 (diff) |
drm/i915: make backlight info per-connector
Move from dev_priv to connector->panel. We still don't allow multiple
sysfs interfaces, though.
There should be no functional changes, except for a slight reordering of
connector backlight and sysfs destroy calls. (This change happens now
that the backlight device is actually per-connector, even though the
destroy calls became per-connector earlier.)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Imre Deak <imre.deak@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 | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 8600c315b4c4..a2009bff2f36 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -1368,13 +1368,8 @@ typedef struct drm_i915_private { | |||
1368 | struct intel_overlay *overlay; | 1368 | struct intel_overlay *overlay; |
1369 | unsigned int sprite_scaling_enabled; | 1369 | unsigned int sprite_scaling_enabled; |
1370 | 1370 | ||
1371 | /* backlight */ | 1371 | /* backlight registers and fields in struct intel_panel */ |
1372 | struct { | 1372 | spinlock_t backlight_lock; |
1373 | int level; | ||
1374 | bool enabled; | ||
1375 | spinlock_t lock; /* bl registers and the above bl fields */ | ||
1376 | struct backlight_device *device; | ||
1377 | } backlight; | ||
1378 | 1373 | ||
1379 | /* LVDS info */ | 1374 | /* LVDS info */ |
1380 | bool no_aux_handshake; | 1375 | bool no_aux_handshake; |