[Intel-gfx] [PATCH 5/7] drm/i915: Use container_of() in the fbdev code
Chris Wilson
chris at chris-wilson.co.uk
Mon Jun 3 12:08:30 CEST 2013
On Fri, May 31, 2013 at 08:07:05PM +0300, ville.syrjala at linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> Use container_of() instead of a cast to get struct intel_fbdev
> from struct drm_fb_helper.
>
> Also populate the fb_info->par correctly with the drm_fb_helper pointer
> instead of the intel_fbdev pointer.
>
> There's no actual functional change since the drm_fb_helper happens to
> be the first member inside intel_fbdev.
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list