diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-12-04 09:45:45 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-12-08 16:07:52 +0100 |
commit | 4490d4c7111e1ebf748ea2c3e1e64d103d73bae7 (patch) | |
tree | 3f169f7d490c11407ea6132589b4600c47a21b2b /drivers/gpu/drm/drm_probe_helper.c | |
parent | 092d01dae09aa6779ed41c3ac637e1e3c835424b (diff) | |
download | linux-4490d4c7111e1ebf748ea2c3e1e64d103d73bae7.tar.bz2 |
drm: Make helper vtable pointers type-safe
Originally the idea behind void* was to allow different sets of
helpers. But now we have that (with probe, plane, crtc and atomic
helpers) and we still just use the same set of vtables. That's the
only way to make the individual helpers modular and allow drivers to
pick&choose and transition between them. So this flexibility isn't
really needed. Also we have lots of non-vtable data meanwhile in core
structures too, this is not the first one at all.
Given that the void * is only trouble since gcc can't warn you if you
mix them up. Let's fix that and make them typesafe.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1449218769-16577-5-git-send-email-daniel.vetter@ffwll.ch
Reviewed-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/drm_probe_helper.c')
0 files changed, 0 insertions, 0 deletions