Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105519
b: refs/heads/master
c: f330c4b
h: refs/heads/master
i:
  105517: 5d99e66
  105515: 0e2a65c
  105511: 56adb81
  105503: 8b935ef
v: v3
  • Loading branch information
Krzysztof Helt authored and Linus Torvalds committed Jul 24, 2008
1 parent 046d5a4 commit 8b3cc4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a4af1798d768ab2f12ab623e21ad68dc8c248005
refs/heads/master: f330c4b1961d730ef15ac184e4b7f1c25847d0ae
9 changes: 4 additions & 5 deletions trunk/drivers/video/tridentfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,10 @@ static int tridentfb_check_var(struct fb_var_screeninfo *var,
line_length = var->xres_virtual * bpp / 8;
}

if (var->yres > var->yres_virtual)
var->yres_virtual = var->yres;
/* datasheet specifies how to set panning only up to 4 MB */
if (line_length * (var->yres_virtual - var->yres) > (4 << 20))
var->yres_virtual = ((4 << 20) / line_length) + var->yres;

if (line_length * var->yres_virtual > info->fix.smem_len)
return -EINVAL;

Expand Down Expand Up @@ -944,8 +946,6 @@ static int tridentfb_pan_display(struct fb_var_screeninfo *var,
debug("enter\n");
offset = (var->xoffset + (var->yoffset * var->xres_virtual))
* var->bits_per_pixel / 32;
info->var.xoffset = var->xoffset;
info->var.yoffset = var->yoffset;
set_screen_start(par, offset);
debug("exit\n");
return 0;
Expand Down Expand Up @@ -1225,7 +1225,6 @@ static int tridentfb_setcolreg(unsigned regno, unsigned red, unsigned green,
((blue & 0xFF00) >> 8);
}

/* debug("exit\n"); */
return 0;
}

Expand Down

0 comments on commit 8b3cc4c

Please sign in to comment.