Commit:     a10336043b8193ec603ad54bb79cdcd26bbf94b3
Parent:     a56d00bbea018cfa6dc62f76db52760872efa1a7
Author:     Stefan Schmidt <[EMAIL PROTECTED]>
AuthorDate: Mon Jan 21 17:18:27 2008 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon Jan 21 19:39:41 2008 -0800

    s3c2410_fb: fix line length calculation
    Fix line length calculation. var->width is the size of the display in mm. We
    like to use the pixel size.
    Without this fix, dynamic (fbset) based resolution and depths changes with
    s3c2410_fb don't work at all.
    Spotted by john cass <[EMAIL PROTECTED]>
    Signed-off-by: Stefan Schmidt <[EMAIL PROTECTED]>
    Signed-off-by: Harald Welte <[EMAIL PROTECTED]>
    Acked-by: Ben Dooks <[EMAIL PROTECTED]>
    Acked-by: Arnaud Patard <[EMAIL PROTECTED]>
    Acked-by: Krzysztof Helt <[EMAIL PROTECTED]>
    Cc: "Antonino A. Daplas" <[EMAIL PROTECTED]>
    Cc: Russell King <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 drivers/video/s3c2410fb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/video/s3c2410fb.c b/drivers/video/s3c2410fb.c
index ad35033..b3c31d9 100644
--- a/drivers/video/s3c2410fb.c
+++ b/drivers/video/s3c2410fb.c
@@ -488,7 +488,7 @@ static int s3c2410fb_set_par(struct fb_info *info)
-       info->fix.line_length = (var->width * var->bits_per_pixel) / 8;
+       info->fix.line_length = (var->xres_virtual * var->bits_per_pixel) / 8;
        /* activate this new configuration */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to