]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0f974c00b0b0cf4756e97c1d92d7167b3725102a
tree8719fcf4b2c4652d094b2bc3c9602b9eb3c06be9
parentfe060b58477616a0ccfc0229460d0e4e66fcd8ac
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