aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/udl
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-09-14 12:40:22 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-09-24 06:09:28 -0400
commitee0d68ab5f0997a500fdf90924a58e787b216292 (patch)
treeee965436534ffe64feeb611f7834fe1996a7d215 /drivers/gpu/drm/udl
parent0d634f6e5b0d1d6e2b044b23d448ab5fb7c102e5 (diff)
drm/udl: use container_of to resolve udl_fbdev from drm_fb_helper
Use container_of instead of casting first structure member. Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/udl')
-rw-r--r--drivers/gpu/drm/udl/udl_fb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/udl/udl_fb.c b/drivers/gpu/drm/udl/udl_fb.c
index d1da339843ca..8cbcb4589bd3 100644
--- a/drivers/gpu/drm/udl/udl_fb.c
+++ b/drivers/gpu/drm/udl/udl_fb.c
@@ -472,7 +472,8 @@ udl_framebuffer_init(struct drm_device *dev,
472static int udlfb_create(struct drm_fb_helper *helper, 472static int udlfb_create(struct drm_fb_helper *helper,
473 struct drm_fb_helper_surface_size *sizes) 473 struct drm_fb_helper_surface_size *sizes)
474{ 474{
475 struct udl_fbdev *ufbdev = (struct udl_fbdev *)helper; 475 struct udl_fbdev *ufbdev =
476 container_of(helper, struct udl_fbdev, helper);
476 struct drm_device *dev = ufbdev->helper.dev; 477 struct drm_device *dev = ufbdev->helper.dev;
477 struct fb_info *info; 478 struct fb_info *info;
478 struct device *device = dev->dev; 479 struct device *device = dev->dev;