Commit 7974f72a authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

ps3fb: make frame buffer offsets unsigned int

Frame buffer offsets don't have to be `unsigned long', `unsigned int' is
sufficient
Signed-off-by: default avatarGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9f4f21b4
...@@ -140,9 +140,9 @@ struct ps3fb_par { ...@@ -140,9 +140,9 @@ struct ps3fb_par {
unsigned int ddr_line_length; unsigned int ddr_line_length;
unsigned int ddr_frame_size; unsigned int ddr_frame_size;
unsigned int xdr_frame_size; unsigned int xdr_frame_size;
unsigned long full_offset; /* start of fullscreen DDR fb */ unsigned int full_offset; /* start of fullscreen DDR fb */
unsigned long fb_offset; /* start of actual DDR fb */ unsigned int fb_offset; /* start of actual DDR fb */
unsigned long pan_offset; unsigned int pan_offset;
}; };
...@@ -512,8 +512,7 @@ static int ps3fb_set_par(struct fb_info *info) ...@@ -512,8 +512,7 @@ static int ps3fb_set_par(struct fb_info *info)
{ {
struct ps3fb_par *par = info->par; struct ps3fb_par *par = info->par;
unsigned int mode, ddr_line_length, xdr_line_length, lines, maxlines; unsigned int mode, ddr_line_length, xdr_line_length, lines, maxlines;
unsigned int ddr_xoff, ddr_yoff; unsigned int ddr_xoff, ddr_yoff, offset;
unsigned long offset;
const struct fb_videomode *vmode; const struct fb_videomode *vmode;
u64 dst; u64 dst;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment