Skip to content

Commit

Permalink
staging: vboxvideo: Use DRM_FB_HELPER_DEFAULT_OPS
Browse files Browse the repository at this point in the history
Use DRM_FB_HELPER_DEFAULT_OPS rather then open-coding it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
jwrdegoede authored and gregkh committed Nov 7, 2018
1 parent 3a9b6ec commit fafb85b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/staging/vboxvideo/vbox_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,10 @@ static struct fb_deferred_io vbox_defio = {

static struct fb_ops vboxfb_ops = {
.owner = THIS_MODULE,
.fb_check_var = drm_fb_helper_check_var,
.fb_set_par = drm_fb_helper_set_par,
DRM_FB_HELPER_DEFAULT_OPS,
.fb_fillrect = drm_fb_helper_sys_fillrect,
.fb_copyarea = drm_fb_helper_sys_copyarea,
.fb_imageblit = drm_fb_helper_sys_imageblit,
.fb_pan_display = drm_fb_helper_pan_display,
.fb_blank = drm_fb_helper_blank,
.fb_setcmap = drm_fb_helper_setcmap,
.fb_debug_enter = drm_fb_helper_debug_enter,
.fb_debug_leave = drm_fb_helper_debug_leave,
};

int vboxfb_create(struct drm_fb_helper *helper,
Expand Down

0 comments on commit fafb85b

Please sign in to comment.