drm/gma500: use DRM_FB_HELPER_DEFAULT_OPS for fb_ops
authorStefan Christ <contact@stefanchrist.eu>
Sun, 13 Nov 2016 23:03:28 +0000 (00:03 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
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 <patrik.r.jakobsson@gmail.com>
Signed-off-by: Stefan Christ <contact@stefanchrist.eu>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1479078208-25221-19-git-send-email-contact@stefanchrist.eu
drivers/gpu/drm/gma500/framebuffer.c