drm/i915: Don't store the max cursor width/height in the crtc
authorDamien Lespiau <damien.lespiau@intel.com>
Fri, 28 Mar 2014 14:17:49 +0000 (14:17 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Apr 2014 20:58:19 +0000 (22:58 +0200)
commit068be56163794c12e0f80d47cdcdb7e7487a05b6
tree8430ed7b67eefa5942310b534ae6d09c6078fde2
parent4e6e1a545f65739a8bb87c487e8e23389fdff1b4
drm/i915: Don't store the max cursor width/height in the crtc

Those values are, global, only used in one function and already stored
in mode_config.cursor_{width,height}.

As a result, this initialization code has been moved from the
crtc_init() function to the global modeset_init() one.

I also renamed CURSOR_{WIDTH,HEIGHT} to MAX_CURSOR_{WIDTH,HEIGHT} to be
more accurate about what these value really are.

Cc: Sagar Kamble <sagar.a.kamble@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h