Skip to content

Commit

Permalink
fbdev: fix obvious bug in show_pan()
Browse files Browse the repository at this point in the history
show_pan will display the value of the xoffset twice, instead of the xoffset
and yoffset.  Fix.

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed May 8, 2007
1 parent 464bdd3 commit c427063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/fbsysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static ssize_t show_pan(struct device *device,
{
struct fb_info *fb_info = dev_get_drvdata(device);
return snprintf(buf, PAGE_SIZE, "%d,%d\n", fb_info->var.xoffset,
fb_info->var.xoffset);
fb_info->var.yoffset);
}

static ssize_t show_name(struct device *device,
Expand Down

0 comments on commit c427063

Please sign in to comment.