From: Gerd Hoffmann Date: Wed, 2 Oct 2013 11:55:11 +0000 (+0200) Subject: hyperv-fb: add blanking support X-Git-Tag: upstream/snapshot3+hdmi~3982^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b5254b4604d358e64d1798544e242f67a81c106;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git hyperv-fb: add blanking support Signed-off-by: Gerd Hoffmann Acked-by: Haiyang Zhang Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/hyperv_fb.c b/drivers/video/hyperv_fb.c index 8d456dc..130708f 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, 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, };