]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Nuke drm_framebuffer->helper_private
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 10 Sep 2015 20:39:22 +0000 (22:39 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 11 Sep 2015 07:18:26 +0000 (09:18 +0200)
commit134f22914550ea81e46e8f59a26f6ee9916ef0b7
tree417d55fc1e4d6024bc3467d5869f1e20ff2d6d73
parentec4ffcfa6469025137bf810c423fe1c92a5fbefa
drm: Nuke drm_framebuffer->helper_private

It's completely unused and there's really no reason for this:
- drm_framebuffer structures are invariant after creation, no need for
  helpers to manipulate them.
- drm_framebuffer structures should just be embedded (and that's what
  all the drivers do).

Stumbled over this since some folks are apparently concerned with the
overhead of struct drm_framebuffer and this is an easy 8 byte saving.

More could be gained by ditching the legacy fields and recomputing
stuff from the fourcc value. But that would require some drm-wide
cocci and real justification.

Cc: gary.k.smith@intel.com
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
include/drm/drm_crtc.h