drm: Fix EDID color format parsing
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 16 Apr 2012 13:16:18 +0000 (15:16 +0200)
committerDave Airlie <airlied@redhat.com>
Fri, 20 Apr 2012 11:44:49 +0000 (12:44 +0100)
commitee58808deca66bd0879562abf606e171752e8e15
treea7624b29220ad28329b9f23e59a0482889238197
parentd1b45d5f0586041fe750d90a62ba09cffb3eace1
drm: Fix EDID color format parsing

The code should obviously check the EDID feature field for EDID feature flags
and not the color_formats field of the drm_display_info struct. Also update the
color_formats field with new modes instead of overwriting the current mode.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c