mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Cc: "Antonino A. Daplas" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
9f4f21b453
commit
7974f72a21
1 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue