aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-10-02 07:55:11 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-10-09 05:52:50 -0400
commit9b5254b4604d358e64d1798544e242f67a81c106 (patch)
treec37e88df51e215a55b42b1e2440bd92433e731c9
parent7ad9684721606efbfb9b347346816e1e6baff8bb (diff)
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>
-rw-r--r--drivers/video/hyperv_fb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/hyperv_fb.c b/drivers/video/hyperv_fb.c
index 8d456dc449b8..130708f96430 100644
--- a/drivers/video/hyperv_fb.c
+++ b/drivers/video/hyperv_fb.c
@@ -575,6 +575,10 @@ static int hvfb_setcolreg(unsigned regno, unsigned red, unsigned green,
575 return 0; 575 return 0;
576} 576}
577 577
578static int hvfb_blank(int blank, struct fb_info *info)
579{
580 return 1; /* get fb_blank to set the colormap to all black */
581}
578 582
579static struct fb_ops hvfb_ops = { 583static struct fb_ops hvfb_ops = {
580 .owner = THIS_MODULE, 584 .owner = THIS_MODULE,
@@ -584,6 +588,7 @@ static struct fb_ops hvfb_ops = {
584 .fb_fillrect = cfb_fillrect, 588 .fb_fillrect = cfb_fillrect,
585 .fb_copyarea = cfb_copyarea, 589 .fb_copyarea = cfb_copyarea,
586 .fb_imageblit = cfb_imageblit, 590 .fb_imageblit = cfb_imageblit,
591 .fb_blank = hvfb_blank,
587}; 592};
588 593
589 594