Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282499
b: refs/heads/master
c: 4966b2a
h: refs/heads/master
i:
  282497: 6fbd7c3
  282495: d5d2e7a
v: v3
  • Loading branch information
Christian Schmidt authored and Dave Airlie committed Dec 20, 2011
1 parent 3ad91f3 commit c6145b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 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: a0ab734d62ef4c35ffa5e39f9ec1e6d6284f05fa
refs/heads/master: 4966b2a9351500cf36f424dfe7a683036fce5622
19 changes: 2 additions & 17 deletions trunk/drivers/gpu/drm/drm_edid.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,25 +508,10 @@ static void
cea_for_each_detailed_block(u8 *ext, detailed_cb *cb, void *closure)
{
int i, n = 0;
u8 rev = ext[0x01], d = ext[0x02];
u8 d = ext[0x02];
u8 *det_base = ext + d;

switch (rev) {
case 0:
/* can't happen */
return;
case 1:
/* have to infer how many blocks we have, check pixel clock */
for (i = 0; i < 6; i++)
if (det_base[18*i] || det_base[18*i+1])
n++;
break;
default:
/* explicit count */
n = min(ext[0x03] & 0x0f, 6);
break;
}

n = (127 - d) / 18;
for (i = 0; i < n; i++)
cb((struct detailed_timing *)(det_base + 18 * i), closure);
}
Expand Down

0 comments on commit c6145b4

Please sign in to comment.