drm/gma500: use DRM_FB_HELPER_DEFAULT_OPS for fb_ops
authorStefan Christ <[email protected]>
Sun, 13 Nov 2016 23:03:28 +0000 (00:03 +0100)
committerDaniel Vetter <[email protected]>
Mon, 14 Nov 2016 07:01:01 +0000 (08:01 +0100)
commit3da6c2f3b730cea04938e612e7f26dfbf2db9641
tree5f8ab67902afb9c9125075d134aa17d49256916c
parenta36384dd941b486a5db8272c1aadd5498b5daa28
drm/gma500: use DRM_FB_HELPER_DEFAULT_OPS for fb_ops

This refactoring leads to real functional changes in the driver.

Now the struct psbfb_ops implements two additional members:

       .fb_setcmap     = drm_fb_helper_setcmap,
       .fb_pan_display = drm_fb_helper_pan_display,

and the struct psbfb_roll_ops implements one additional member:

       .fb_setcmap     = drm_fb_helper_setcmap,

and the struct psbfb_unaccel_ops implements two additional members:

       .fb_setcmap     = drm_fb_helper_setcmap,
       .fb_pan_display = drm_fb_helper_pan_display,

These changes are not tested.

Cc: Patrik Jakobsson <[email protected]>
Signed-off-by: Stefan Christ <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/gma500/framebuffer.c