git: drm: Use struct fb_info * as arg for syscons fb restore helper function.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Sat Nov 19 11:55:56 PST 2016


commit f25fc9b7775736755e5e2e9e95f6f078de737ed2
Author: Imre Vadász <imre at vdsz.com>
Date:   Wed Nov 16 00:34:04 2016 +0100

    drm: Use struct fb_info * as arg for syscons fb restore helper function.
    
    * This makes the framebuffer api handling in drm slightly nicer, and
      reduces the diffs in drm/radeonkms/i915 a bit.
    
    * Renames the cookie element in struct fb_info to par, to avoid diffs
      in drm, radeonkms and i915.
    
    * While there, use drm_fb_helper_alloc_fbi() in drm/radeon as well for
      allocating the struct fb_info, and uncomment drm_fb_helper_release_fbi(),
      which is needed in an error handler there.

Summary of changes:
 sys/dev/drm/drm_fb_helper.c             | 19 +++++++++++++------
 sys/dev/drm/i915/intel_fbdev.c          |  2 --
 sys/dev/drm/radeon/radeon_fb.c          | 14 ++++++++++----
 sys/dev/misc/syscons/syscons.c          |  4 ++--
 sys/platform/pc64/include/framebuffer.h |  4 ++--
 5 files changed, 27 insertions(+), 16 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f25fc9b7775736755e5e2e9e95f6f078de737ed2


-- 
DragonFly BSD source repository



More information about the Commits mailing list