]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/i915: Use container_of() in the fbdev code
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 31 May 2013 17:07:05 +0000 (20:07 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 3 Jun 2013 11:45:41 +0000 (13:45 +0200)
commit3430824b4ba9f8b658d5503d390ce9a7286b0b4a
treea16f60d92c772c6967b3421c883829bd6567a0c9
parent96a764d983647636b39c462ea14cd1f588f6c0bd
drm/i915: Use container_of() in the fbdev code

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.

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_fb.c