Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41002
b: refs/heads/master
c: 4be7039
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Nov 17, 2006
1 parent ee7fc8f commit 0384f60
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: 4f71c5de19c27f2198105d3b26b398494d5c353b
refs/heads/master: 4be703906cffd5902028d20626e636ba21fb0b61
6 changes: 3 additions & 3 deletions trunk/drivers/video/fb_ddc.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,26 @@
static unsigned char *fb_do_probe_ddc_edid(struct i2c_adapter *adapter)
{
unsigned char start = 0x0;
unsigned char *buf = kmalloc(EDID_LENGTH, GFP_KERNEL);
struct i2c_msg msgs[] = {
{
.addr = DDC_ADDR,
.flags = 0,
.len = 1,
.buf = &start,
}, {
.addr = DDC_ADDR,
.flags = I2C_M_RD,
.len = EDID_LENGTH,
.buf = buf,
}
};
unsigned char *buf;

buf = kmalloc(EDID_LENGTH, GFP_KERNEL);
if (!buf) {
dev_warn(&adapter->dev, "unable to allocate memory for EDID "
"block.\n");
return NULL;
}
msgs[1].buf = buf;

if (i2c_transfer(adapter, msgs, 2) == 2)
return buf;
Expand Down

0 comments on commit 0384f60

Please sign in to comment.