drm: Store vendor IDs directly in the EDID quirk structure
authorIan Pilcher <arequipeno@gmail.com>
Sun, 22 Apr 2012 16:40:26 +0000 (11:40 -0500)
committerDave Airlie <airlied@redhat.com>
Fri, 27 Apr 2012 07:25:13 +0000 (08:25 +0100)
EDID vendor IDs are always 3 characters long (4 with the terminating
0).  It doesn't make any sense to have a (possibly 8-byte) pointer
to the ID string in the quirk structure.

Signed-off-by: Ian Pilcher <arequipeno@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c

index f425379..608bddf 100644 (file)
@@ -81,7 +81,7 @@ struct detailed_mode_closure {
 #define LEVEL_CVT      3
 
 static struct edid_quirk {
-       char *vendor;
+       char vendor[4];
        int product_id;
        u32 quirks;
 } edid_quirk_list[] = {