]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ps3fb: make frame buffer offsets unsigned int
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Wed, 6 Feb 2008 09:39:32 +0000 (01:39 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 6 Feb 2008 18:41:17 +0000 (10:41 -0800)
Frame buffer offsets don't have to be `unsigned long', `unsigned int' is
sufficient

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/ps3fb.c

index b9c5b4e122c78e252ff3e323f5e353e82752ca22..be9f70cd0062157073f42ec26fe205bfaab20851 100644 (file)
@@ -140,9 +140,9 @@ struct ps3fb_par {
        unsigned int ddr_line_length;
        unsigned int ddr_frame_size;
        unsigned int xdr_frame_size;
-       unsigned long full_offset;      /* start of fullscreen DDR fb */
-       unsigned long fb_offset;        /* start of actual DDR fb */
-       unsigned long pan_offset;
+       unsigned int full_offset;       /* start of fullscreen DDR fb */
+       unsigned int fb_offset;         /* start of actual DDR fb */
+       unsigned int pan_offset;
 };
 
 
@@ -512,8 +512,7 @@ static int ps3fb_set_par(struct fb_info *info)
 {
        struct ps3fb_par *par = info->par;
        unsigned int mode, ddr_line_length, xdr_line_length, lines, maxlines;
-       unsigned int ddr_xoff, ddr_yoff;
-       unsigned long offset;
+       unsigned int ddr_xoff, ddr_yoff, offset;
        const struct fb_videomode *vmode;
        u64 dst;