drm/edid: Detailed standard timing blocks have six timings, not five.
authorAdam Jackson <ajax@redhat.com>
Wed, 23 Sep 2009 21:31:09 +0000 (17:31 -0400)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Sep 2009 23:46:06 +0000 (09:46 +1000)
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c

index dd35dc11ffd4dd911c9a10d3ec63a97173788b1a..8ed732ae1ecc29afd9bcd524aec6898898e57dfa 100644 (file)
@@ -847,8 +847,7 @@ static int add_detailed_info(struct drm_connector *connector,
                        case EDID_DETAIL_MONITOR_CPDATA:
                                break;
                        case EDID_DETAIL_STD_MODES:
-                               /* Five modes per detailed section */
-                               for (j = 0; j < 5; i++) {
+                               for (j = 0; j < 6; i++) {
                                        struct std_timing *std;
                                        struct drm_display_mode *newmode;