drm/i915/skl: Extract tile height code into a helper function
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 23 Mar 2015 11:10:32 +0000 (11:10 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 23 Mar 2015 13:55:01 +0000 (14:55 +0100)
commit6761dd3185a76c5d9ae0141e08f123d97d7f303b
treea7134456c125057d82be919e70a412de0a94de11
parent9848de082ff400f8b88e6d550bfce551838af69c
drm/i915/skl: Extract tile height code into a helper function

It will be used in a later patch and also convert all height parameters
from int to unsigned int.

v2: Rebased for fb modifiers.
v3: Fixed v2 rebase.
v4:
   * Height should be unsigned int.
   * Make it take pixel_format for consistency and simplicity.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Michel Thierry <michel.thierry@intel.com> (v1)
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> (v4)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h