Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30313
b: refs/heads/master
c: 9dac73a
h: refs/heads/master
i:
  30311: 1b57d63
v: v3
  • Loading branch information
Daniel R Thompson authored and Linus Torvalds committed Jun 26, 2006
1 parent a3fc675 commit a5f61da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: 90b4f9aca4d124d114e02bbb3d1d4f3d1d47138f
refs/heads/master: 9dac73a4ec2c0a791bbfc6630dc4629ce11e68b9
11 changes: 10 additions & 1 deletion trunk/drivers/video/fbsysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,22 @@ static int mode_string(char *buf, unsigned int offset,
const struct fb_videomode *mode)
{
char m = 'U';
char v = 'p';

if (mode->flag & FB_MODE_IS_DETAILED)
m = 'D';
if (mode->flag & FB_MODE_IS_VESA)
m = 'V';
if (mode->flag & FB_MODE_IS_STANDARD)
m = 'S';
return snprintf(&buf[offset], PAGE_SIZE - offset, "%c:%dx%d-%d\n", m, mode->xres, mode->yres, mode->refresh);

if (mode->vmode & FB_VMODE_INTERLACED)
v = 'i';
if (mode->vmode & FB_VMODE_DOUBLE)
v = 'd';

return snprintf(&buf[offset], PAGE_SIZE - offset, "%c:%dx%d%c-%d\n",
m, mode->xres, mode->yres, v, mode->refresh);
}

static ssize_t store_mode(struct class_device *class_device, const char * buf,
Expand Down

0 comments on commit a5f61da

Please sign in to comment.