Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94138
b: refs/heads/master
c: 416e74e
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Linus Torvalds committed Apr 28, 2008
1 parent ed20a37 commit 6947085
Show file tree
Hide file tree
Showing 5 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: 7f29b87a7779505288a31df16ba84a85fc1ae93c
refs/heads/master: 416e74ea7813597b586eafc24f67779eeb86e12f
2 changes: 1 addition & 1 deletion trunk/drivers/video/atafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ static int falcon_decode_var(struct fb_var_screeninfo *var,

gstart = (prescale / 2 + plen * left_margin) / prescale;
/* gend1 is for hde (gend-gstart multiple of align), shifter's xres */
gend1 = gstart + ((xres + align - 1) / align) * align * plen / prescale;
gend1 = gstart + roundup(xres, align) * plen / prescale;
/* gend2 is for hbb, visible xres (rest to gend1 is cut off by hblank) */
gend2 = gstart + xres * plen / prescale;
par->HHT = plen * (left_margin + xres + right_margin) /
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/video/cirrusfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3117,7 +3117,7 @@ static void bestclock(long freq, long *best, long *nom,
}
}
}
d = ((143181 * n) + f - 1) / f;
d = DIV_ROUND_UP(143181 * n, f);
if ((d >= 7) && (d <= 63)) {
if (d > 31)
d = (d / 2) * 2;
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/video/console/fbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,7 @@ static void fbcon_prepare_logo(struct vc_data *vc, struct fb_info *info,
if (fb_get_color_depth(&info->var, &info->fix) == 1)
erase &= ~0x400;
logo_height = fb_prepare_logo(info, ops->rotate);
logo_lines = (logo_height + vc->vc_font.height - 1) /
vc->vc_font.height;
logo_lines = DIV_ROUND_UP(logo_height, vc->vc_font.height);
q = (unsigned short *) (vc->vc_origin +
vc->vc_size_row * rows);
step = logo_lines * cols;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/video/gxt4500.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static int calc_pll(int period_ps, struct gxt4500_par *par)
for (pdiv1 = 1; pdiv1 <= 8; ++pdiv1) {
for (pdiv2 = 1; pdiv2 <= pdiv1; ++pdiv2) {
postdiv = pdiv1 * pdiv2;
pll_period = (period_ps + postdiv - 1) / postdiv;
pll_period = DIV_ROUND_UP(period_ps, postdiv);
/* keep pll in range 350..600 MHz */
if (pll_period < 1666 || pll_period > 2857)
continue;
Expand Down

0 comments on commit 6947085

Please sign in to comment.