drm/i915: Move the cursor_base setup to i{845, 9xx}_update_cursor()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 12 Sep 2014 17:53:32 +0000 (20:53 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Sep 2014 12:43:12 +0000 (14:43 +0200)
commit99d1f3878baa86d5ce9e275ae9568fd903616f54
tree6bb52098bcb80df2059081d3c37b3e4fbb8a7509
parentf77c44b902a032718e2431a5fc9211ef0b0282d3
drm/i915: Move the cursor_base setup to i{845, 9xx}_update_cursor()

To make the code a bit more undestandable move the
intel_crtc->cursor_base assignment into the low level update cursor
routines. That's were we compare the current value with the new one
so immediately seeing that it gets assigned only afterwards helps
one to understand that it gets assigned only after the comparison.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.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