Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294218
b: refs/heads/master
c: e71ff6f
h: refs/heads/master
v: v3
  • Loading branch information
Olivier Sobrie authored and Florian Tobias Schandinat committed Mar 8, 2012
1 parent 9a40e42 commit e42c9a6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 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: 33ad39121d5527048394003d16b8b38f1140ebf1
refs/heads/master: e71ff6f265c80b6f04f1d16470b5afa58f0b4648
19 changes: 11 additions & 8 deletions trunk/drivers/video/udlfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1432,19 +1432,22 @@ static ssize_t edid_store(
struct device *fbdev = container_of(kobj, struct device, kobj);
struct fb_info *fb_info = dev_get_drvdata(fbdev);
struct dlfb_data *dev = fb_info->par;
int ret;

/* We only support write of entire EDID at once, no offset*/
if ((src_size != EDID_LENGTH) || (src_off != 0))
return 0;
return -EINVAL;

dlfb_setup_modes(dev, fb_info, src, src_size);
ret = dlfb_setup_modes(dev, fb_info, src, src_size);
if (ret)
return ret;

if (dev->edid && (memcmp(src, dev->edid, src_size) == 0)) {
pr_info("sysfs written EDID is new default\n");
dlfb_ops_set_par(fb_info);
return src_size;
} else
return 0;
if (!dev->edid || memcmp(src, dev->edid, src_size))
return -EINVAL;

pr_info("sysfs written EDID is new default\n");
dlfb_ops_set_par(fb_info);
return src_size;
}

static ssize_t metrics_reset_store(struct device *fbdev,
Expand Down

0 comments on commit e42c9a6

Please sign in to comment.