aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorAndreas Bießmann <biessmann@corscience.de>2011-02-11 10:19:44 -0500
committerPaul Mundt <lethal@linux-sh.org>2011-03-22 03:23:47 -0400
commitbed7bddbb434df0e76ffe2ff8cb535fe8f3c0c69 (patch)
tree1634a267497d92d37b88ca9c6b889ae794c2a314 /drivers/video
parent7cdcdb69bdf51192bcbfb7cf479850fe7c33357d (diff)
atmel_lcdfb: add fb_blank function
Signed-off-by: Andreas Bießmann <biessmann@corscience.de> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/atmel_lcdfb.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c
index 16da8af7425c..59654e29e205 100644
--- a/drivers/video/atmel_lcdfb.c
+++ b/drivers/video/atmel_lcdfb.c
@@ -714,11 +714,35 @@ static int atmel_lcdfb_pan_display(struct fb_var_screeninfo *var,
714 return 0; 714 return 0;
715} 715}
716 716
717static int atmel_lcdfb_blank(int blank_mode, struct fb_info *info)
718{
719 struct atmel_lcdfb_info *sinfo = info->par;
720
721 switch (blank_mode) {
722 case FB_BLANK_UNBLANK:
723 case FB_BLANK_NORMAL:
724 atmel_lcdfb_start(sinfo);
725 break;
726 case FB_BLANK_VSYNC_SUSPEND:
727 case FB_BLANK_HSYNC_SUSPEND:
728 break;
729 case FB_BLANK_POWERDOWN:
730 atmel_lcdfb_stop(sinfo);
731 break;
732 default:
733 return -EINVAL;
734 }
735
736 /* let fbcon do a soft blank for us */
737 return ((blank_mode == FB_BLANK_NORMAL) ? 1 : 0);
738}
739
717static struct fb_ops atmel_lcdfb_ops = { 740static struct fb_ops atmel_lcdfb_ops = {
718 .owner = THIS_MODULE, 741 .owner = THIS_MODULE,
719 .fb_check_var = atmel_lcdfb_check_var, 742 .fb_check_var = atmel_lcdfb_check_var,
720 .fb_set_par = atmel_lcdfb_set_par, 743 .fb_set_par = atmel_lcdfb_set_par,
721 .fb_setcolreg = atmel_lcdfb_setcolreg, 744 .fb_setcolreg = atmel_lcdfb_setcolreg,
745 .fb_blank = atmel_lcdfb_blank,
722 .fb_pan_display = atmel_lcdfb_pan_display, 746 .fb_pan_display = atmel_lcdfb_pan_display,
723 .fb_fillrect = cfb_fillrect, 747 .fb_fillrect = cfb_fillrect,
724 .fb_copyarea = cfb_copyarea, 748 .fb_copyarea = cfb_copyarea,