[PATCH 0/9 linux-next] drivers/gpu/drm: use container_of where possible

Fabian Frederick fabf at skynet.be
Sun Sep 14 09:40:13 PDT 2014


Small patchset using container_of instead of casting on first structure member address.

Fabian Frederick (9):
  drm/cirrus: use container_of to resolve cirrus_fbdev from
    drm_fb_helper
  drm/mgag200: use container_of to resolve mga_fbdev from drm_fb_helper
  drm/radeon: use container_of to resolve radeon_fbdev from
    drm_fb_helper
  drm/nouveau: use container_of to resolve nouveau_fbdev from
    drm_fb_helper
  drm/nouveau: use container_of to resolve nouveau_plane from drm_plane
  drm/qxl: use container_of to resolve qxl_fbdev from drm_fb_helper
  drm/gma500: use container_of to resolve psb_fbdev from drm_fb_helper
  drm/ast: use container_of to resolve ast_fbdev from drm_fb_helper
  drm/udl: use container_of to resolve udl_fbdev from drm_fb_helper

 drivers/gpu/drm/ast/ast_fb.c               |  3 ++-
 drivers/gpu/drm/cirrus/cirrus_fbdev.c      |  3 ++-
 drivers/gpu/drm/gma500/framebuffer.c       |  3 ++-
 drivers/gpu/drm/mgag200/mgag200_fb.c       |  3 ++-
 drivers/gpu/drm/nouveau/dispnv04/overlay.c | 15 ++++++++++-----
 drivers/gpu/drm/nouveau/nouveau_fbcon.c    |  3 ++-
 drivers/gpu/drm/qxl/qxl_fb.c               |  3 ++-
 drivers/gpu/drm/radeon/radeon_fb.c         |  3 ++-
 drivers/gpu/drm/udl/udl_fb.c               |  3 ++-
 9 files changed, 26 insertions(+), 13 deletions(-)

-- 
1.9.1



More information about the dri-devel mailing list