Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271211
b: refs/heads/master
c: 0aa76b0
h: refs/heads/master
i:
  271209: 361b0ad
  271207: 85835c0
v: v3
  • Loading branch information
Laurent Pinchart committed Aug 19, 2011
1 parent 088574d commit 3ee2f2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 8e42a962a279369ba3e6a25f321c7cd4d471e633
refs/heads/master: 0aa76b0ce163f929b4e8f41331073814b0ef8612
6 changes: 3 additions & 3 deletions trunk/drivers/video/sm501fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ static int sm501fb_pan_crt(struct fb_var_screeninfo *var,
{
struct sm501fb_par *par = info->par;
struct sm501fb_info *fbi = par->info;
unsigned int bytes_pixel = var->bits_per_pixel / 8;
unsigned int bytes_pixel = info->var.bits_per_pixel / 8;
unsigned long reg;
unsigned long xoffs;

Expand Down Expand Up @@ -614,10 +614,10 @@ static int sm501fb_pan_pnl(struct fb_var_screeninfo *var,
struct sm501fb_info *fbi = par->info;
unsigned long reg;

reg = var->xoffset | (var->xres_virtual << 16);
reg = var->xoffset | (info->var.xres_virtual << 16);
smc501_writel(reg, fbi->regs + SM501_DC_PANEL_FB_WIDTH);

reg = var->yoffset | (var->yres_virtual << 16);
reg = var->yoffset | (info->var.yres_virtual << 16);
smc501_writel(reg, fbi->regs + SM501_DC_PANEL_FB_HEIGHT);

sm501fb_sync_regs(fbi);
Expand Down

0 comments on commit 3ee2f2f

Please sign in to comment.