hyperv-fb: add blanking support
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 2 Oct 2013 11:55:11 +0000 (13:55 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 9 Oct 2013 09:52:50 +0000 (12:52 +0300)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/hyperv_fb.c

index 8d456dc..130708f 100644 (file)
@@ -575,6 +575,10 @@ static int hvfb_setcolreg(unsigned regno, unsigned red, unsigned green,
        return 0;
 }
 
+static int hvfb_blank(int blank, struct fb_info *info)
+{
+       return 1;       /* get fb_blank to set the colormap to all black */
+}
 
 static struct fb_ops hvfb_ops = {
        .owner = THIS_MODULE,
@@ -584,6 +588,7 @@ static struct fb_ops hvfb_ops = {
        .fb_fillrect = cfb_fillrect,
        .fb_copyarea = cfb_copyarea,
        .fb_imageblit = cfb_imageblit,
+       .fb_blank = hvfb_blank,
 };