diff options
author | Vasily Khoruzhick <anarsoul@gmail.com> | 2011-03-11 11:20:49 +0200 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2011-03-16 17:44:35 +0800 |
commit | dcf8eee94f7eb2671e6d5774e81d45ad06b4f980 (patch) | |
tree | 314a1cbbd62f6b1fb93b5dd29cc3e0fb772ace53 /drivers/video | |
parent | 7779cee3f45122d2f81397f55d7a14f654a0b276 (diff) | |
download | op-kernel-dev-dcf8eee94f7eb2671e6d5774e81d45ad06b4f980.zip op-kernel-dev-dcf8eee94f7eb2671e6d5774e81d45ad06b4f980.tar.gz |
ARM: pxafb: fix typo in ypos assignment
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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/pxafb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c index e2f643e..a3bdcc1 100644 --- a/drivers/video/pxafb.c +++ b/drivers/video/pxafb.c @@ -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); @@ -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) | |