diff options
author | Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> | 2008-02-06 04:39:32 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-06 13:41:17 -0500 |
commit | 7974f72a21a246051b3dd84d7158974fc4785150 (patch) | |
tree | 12c70baaf7807c7f13787674220048fee7d7e95a /drivers/video/ps3fb.c | |
parent | 9f4f21b453f2f51c9d1f22638eae306c07c95b42 (diff) |
ps3fb: make frame buffer offsets unsigned int
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>
Diffstat (limited to 'drivers/video/ps3fb.c')
-rw-r--r-- | drivers/video/ps3fb.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/video/ps3fb.c b/drivers/video/ps3fb.c index b9c5b4e122c7..be9f70cd0062 100644 --- a/drivers/video/ps3fb.c +++ b/drivers/video/ps3fb.c | |||
@@ -140,9 +140,9 @@ struct ps3fb_par { | |||
140 | unsigned int ddr_line_length; | 140 | unsigned int ddr_line_length; |
141 | unsigned int ddr_frame_size; | 141 | unsigned int ddr_frame_size; |
142 | unsigned int xdr_frame_size; | 142 | unsigned int xdr_frame_size; |
143 | unsigned long full_offset; /* start of fullscreen DDR fb */ | 143 | unsigned int full_offset; /* start of fullscreen DDR fb */ |
144 | unsigned long fb_offset; /* start of actual DDR fb */ | 144 | unsigned int fb_offset; /* start of actual DDR fb */ |
145 | unsigned long pan_offset; | 145 | unsigned int pan_offset; |
146 | }; | 146 | }; |
147 | 147 | ||
148 | 148 | ||
@@ -512,8 +512,7 @@ static int ps3fb_set_par(struct fb_info *info) | |||
512 | { | 512 | { |
513 | struct ps3fb_par *par = info->par; | 513 | struct ps3fb_par *par = info->par; |
514 | unsigned int mode, ddr_line_length, xdr_line_length, lines, maxlines; | 514 | unsigned int mode, ddr_line_length, xdr_line_length, lines, maxlines; |
515 | unsigned int ddr_xoff, ddr_yoff; | 515 | unsigned int ddr_xoff, ddr_yoff, offset; |
516 | unsigned long offset; | ||
517 | const struct fb_videomode *vmode; | 516 | const struct fb_videomode *vmode; |
518 | u64 dst; | 517 | u64 dst; |
519 | 518 | ||