hyperv-fb: add blanking support

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
Gerd Hoffmann 2013-10-02 13:55:11 +02:00 committed by Tomi Valkeinen
parent 7ad9684721
commit 9b5254b460
1 changed files with 5 additions and 0 deletions

View File

@ -575,6 +575,10 @@ static int hvfb_setcolreg(unsigned regno, unsigned red, unsigned green,
return 0; 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 = { static struct fb_ops hvfb_ops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
@ -584,6 +588,7 @@ static struct fb_ops hvfb_ops = {
.fb_fillrect = cfb_fillrect, .fb_fillrect = cfb_fillrect,
.fb_copyarea = cfb_copyarea, .fb_copyarea = cfb_copyarea,
.fb_imageblit = cfb_imageblit, .fb_imageblit = cfb_imageblit,
.fb_blank = hvfb_blank,
}; };