]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: vboxvideo: remove dead gamma lut code
authorPeter Rosin <peda@axentia.se>
Fri, 4 Aug 2017 10:45:06 +0000 (12:45 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 7 Aug 2017 09:20:36 +0000 (11:20 +0200)
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are
no longer used. Remove the dead code that was not doing anything
sensible anyway.

Signed-off-by: Peter Rosin <peda@axentia.se>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20170804104506.2414-1-peda@axentia.se
drivers/staging/vboxvideo/vbox_fb.c
drivers/staging/vboxvideo/vbox_mode.c

index 35f6d9f8c203845a44111fcff6dda469fd567cdb..bf6635826159892cc6311a57630f5daf458adb90 100644 (file)
@@ -317,22 +317,7 @@ static int vboxfb_create(struct drm_fb_helper *helper,
        return 0;
 }
 
-static void vbox_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green,
-                             u16 blue, int regno)
-{
-}
-
-static void vbox_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green,
-                             u16 *blue, int regno)
-{
-       *red = regno;
-       *green = regno;
-       *blue = regno;
-}
-
 static struct drm_fb_helper_funcs vbox_fb_helper_funcs = {
-       .gamma_set = vbox_fb_gamma_set,
-       .gamma_get = vbox_fb_gamma_get,
        .fb_probe = vboxfb_create,
 };
 
index f2b85f3256fab74a55397ce48fb78338744ee58e..996da1c79158c46ddaa6863d7db3e2ca0ec284c0 100644 (file)
@@ -134,10 +134,6 @@ static int vbox_set_view(struct drm_crtc *crtc)
        return 0;
 }
 
-static void vbox_crtc_load_lut(struct drm_crtc *crtc)
-{
-}
-
 static void vbox_crtc_dpms(struct drm_crtc *crtc, int mode)
 {
        struct vbox_crtc *vbox_crtc = to_vbox_crtc(crtc);
@@ -330,7 +326,6 @@ static const struct drm_crtc_helper_funcs vbox_crtc_helper_funcs = {
        .mode_set = vbox_crtc_mode_set,
        /* .mode_set_base = vbox_crtc_mode_set_base, */
        .disable = vbox_crtc_disable,
-       .load_lut = vbox_crtc_load_lut,
        .prepare = vbox_crtc_prepare,
        .commit = vbox_crtc_commit,
 };