]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove useless casts to intel_plane_state
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 12 Jan 2017 09:43:45 +0000 (10:43 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 12 Jan 2017 14:36:38 +0000 (15:36 +0100)
commitb5a2bb61ca684137e6dfc5c23792d8d6ba172862
tree824f4a8f2b906652d6b96743c049ce0697a6e79e
parentc669a58e13851791ac837b9aae66a0a894f5af8b
drm/i915: Remove useless casts to intel_plane_state

The visible member used to be in intel_plane_state->visible,
but has been moved to drm_plane_state->visible. In the conversion
some casts were left in that are now useless.

to_intel_plane_state(x)->base.visible is the same as x->visible,
so use the latter to clear up the code a little.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1484214225-30328-1-git-send-email-maarten.lankhorst@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_fbc.c