Commit 59d8aff6 authored by Adam Jackson's avatar Adam Jackson Committed by Dave Airlie

drm/edid: Remove some silly comments

Signed-off-by: default avatarAdam Jackson <ajax@redhat.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 7466f4cc
...@@ -1328,31 +1328,20 @@ static int add_detailed_info_eedid(struct drm_connector *connector, ...@@ -1328,31 +1328,20 @@ static int add_detailed_info_eedid(struct drm_connector *connector,
int start_offset, end_offset; int start_offset, end_offset;
int timing_level; int timing_level;
if (edid->version == 1 && edid->revision < 3) { if (edid->version == 1 && edid->revision < 3)
/* If the EDID version is less than 1.3, there is no
* extension EDID.
*/
return 0; return 0;
} if (!edid->extensions)
if (!edid->extensions) {
/* if there is no extension EDID, it is unnecessary to
* parse the E-EDID to get detailed info
*/
return 0; return 0;
}
/* Find CEA extension */ /* Find CEA extension */
for (i = 0; i < edid->extensions; i++) { for (i = 0; i < edid->extensions; i++) {
edid_ext = (char *)edid + EDID_LENGTH * (i + 1); edid_ext = (char *)edid + EDID_LENGTH * (i + 1);
/* This block is CEA extension */
if (edid_ext[0] == 0x02) if (edid_ext[0] == 0x02)
break; break;
} }
if (i == edid->extensions) { if (i == edid->extensions)
/* if there is no additional timing EDID block, return */
return 0; return 0;
}
/* Get the start offset of detailed timing block */ /* Get the start offset of detailed timing block */
start_offset = edid_ext[2]; start_offset = edid_ext[2];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment