drm/i915: Create generic intel_panel for LVDS and eDP
authorJani Nikula <jani.nikula@intel.com>
Fri, 19 Oct 2012 11:51:49 +0000 (14:51 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 22 Oct 2012 16:31:20 +0000 (18:31 +0200)
commit1d508706ea848e32ff20bb311f4325896c6eb7b9
treecfd2760c7a693fceaa28e06001e31ca0f00c51fe
parentf8779fda5776dfb9369ec09fc21745c9d8057e81
drm/i915: Create generic intel_panel for LVDS and eDP

Create a generic struct intel_panel for sharing a data structure and code
between eDP and LVDS panels. Add the new struct to intel_connector so that
later on we can have generic EDID and mode reading functions with EDID
caching that transparently fallback to fixed mode when EDID is not
available.

Add intel_panel as a dummy first, and move data (such as the mentioned
fixed mode) to it in later patches.

Based on earlier work by Chris Wilson <chris@chris-wilson.co.uk>

CC: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Fixup tiny conflict in intel_dp_destroy.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_lvds.c
drivers/gpu/drm/i915/intel_panel.c