]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] au1100fb: info->var.rotate fix
authorRodolfo Giometti <giometti@linux.it>
Sat, 5 Aug 2006 19:14:19 +0000 (12:14 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 6 Aug 2006 15:57:47 +0000 (08:57 -0700)
Fix "info->var.rotate" data settings.

This info should be deduced directly from "fbdev->panel->control_base"
defined into au1100fb.h.

Signed-off-by: Rodolfo Giometti <giometti@linux.it>
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/au1100fb.c

index a92a91fef16fc303d0aa393c4af607a063e305a2..26086bf5fa8042d2542e570d151a2b0b9d60e6bd 100644 (file)
@@ -164,10 +164,11 @@ int au1100fb_setmode(struct au1100fb_device *fbdev)
        }
 
        info->screen_size = info->fix.line_length * info->var.yres_virtual;
+       info->var.rotate = ((fbdev->panel->control_base&LCD_CONTROL_SM_MASK) \
+                               >> LCD_CONTROL_SM_BIT) * 90;
 
        /* Determine BPP mode and format */
-       fbdev->regs->lcd_control = fbdev->panel->control_base |
-                           ((info->var.rotate/90) << LCD_CONTROL_SM_BIT);
+       fbdev->regs->lcd_control = fbdev->panel->control_base;
 
        fbdev->regs->lcd_intenable = 0;
        fbdev->regs->lcd_intstatus = 0;