Skip to content

Commit

Permalink
ACPI video: check cap._DDC flag before getting EDID
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhang Rui authored and Len Brown committed Dec 14, 2010
1 parent 677bd81 commit 8206955
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/acpi/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8206955

Please sign in to comment.