Skip to content

Commit

Permalink
ARM: pxafb: fix typo in ypos assignment
Browse files Browse the repository at this point in the history
Sascha Hauer <s.hauer@pengutronix.de> pointed that
ypos takes value of xpos due to typo.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
  • Loading branch information
Vasily Khoruzhick authored and Eric Miao committed Mar 16, 2011
1 parent 7779cee commit dcf8eee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/pxafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ static int overlayfb_check_var(struct fb_var_screeninfo *var,
int xpos, ypos, pfor, bpp;

xpos = NONSTD_TO_XPOS(var->nonstd);
ypos = NONSTD_TO_XPOS(var->nonstd);
ypos = NONSTD_TO_YPOS(var->nonstd);
pfor = NONSTD_TO_PFOR(var->nonstd);

bpp = pxafb_var_to_bpp(var);
Expand Down Expand Up @@ -842,7 +842,7 @@ static int overlayfb_set_par(struct fb_info *info)

bpp = pxafb_var_to_bpp(var);
xpos = NONSTD_TO_XPOS(var->nonstd);
ypos = NONSTD_TO_XPOS(var->nonstd);
ypos = NONSTD_TO_YPOS(var->nonstd);
pfor = NONSTD_TO_PFOR(var->nonstd);

ofb->control[0] = OVLxC1_PPL(var->xres) | OVLxC1_LPO(var->yres) |
Expand Down

0 comments on commit dcf8eee

Please sign in to comment.