drm/i915: Use enum plane_id in VLV/CHV wm code
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 22 Nov 2016 16:02:01 +0000 (18:02 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 23 Nov 2016 20:04:50 +0000 (22:04 +0200)
commit49845a231587f1d233a93208c117b5205619f85f
tree8719fcf4b2c4652d094b2bc3c9602b9eb3c06be9
parent83c04a62a187283d9e1473d062cd1cd25ee60e2e
drm/i915: Use enum plane_id in VLV/CHV wm code

Let's try not to abuse plane->plane for sprites on VLV/CHV and instead
use plane->id. Since out watermark structures aren't entirely plane type
agnostic (for now) and start indexing sprites from 0  we'll add a small
helper to convert between the two bases.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1479830524-7882-7-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_pm.c