drm/i915: Give meaningful names to all the planes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 27 May 2016 17:59:23 +0000 (20:59 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 May 2016 14:02:10 +0000 (17:02 +0300)
commit38573dc1c316620beb0c27c2517f9b5c2c4ecdd4
treec2dabb9d1c12a5ecb487ab6156cb55a11ba02ca8
parent69ae561f4557d31a1dc6d23db5c2735a5568959c
drm/i915: Give meaningful names to all the planes

Let's name our planes in a way that makes sense wrt. the spec:
- skl+ -> "plane 1A", "plane 2A", "plane 1C", "cursor A" etc.
- g4x+ -> "primary A", "primary B", "sprite A", "cursor C" etc.
- pre-g4x -> "plane A", "cursor B" etc.

v2: Rebase on top of the fixed/cleaned error paths
    Use a local 'name' variable to make things easier
v3: Pass the name as a function argument to drm_universal_plane_init() (Jani)
v3: Pass the printf style string to drm_universal_plane_init()

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1464371966-15190-6-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_sprite.c