]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ACPI video: check cap._DDC flag before getting EDID
authorZhang Rui <rui.zhang@intel.com>
Mon, 6 Dec 2010 07:04:24 +0000 (15:04 +0800)
committerLen Brown <len.brown@intel.com>
Tue, 14 Dec 2010 05:04:59 +0000 (00:04 -0500)
cap._DDC is defined but never used.
Check this flag now and don't try to get EDID for video output devices with this flag cleared.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c

index 81766ebec84312421de8d8e692051115bf0dbc0f..177b4ddc34790f10360ee140da28785d38c36473 100644 (file)
@@ -1275,6 +1275,9 @@ int acpi_video_get_edid(struct acpi_device *device, int type, int device_id,
                if (!video_device)
                        continue;
 
+               if (!video_device->cap._DDC)
+                       continue;
+
                if (type) {
                        switch (type) {
                        case ACPI_VIDEO_DISPLAY_CRT: