ACPI video: check cap._DDC flag before getting EDID
PATCH 5/7 ACPI video: check cap._DDC flag before getting EDID
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 <[email protected]>
--- drivers/acpi/video.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/acpi/video.c +3 -0
@@ -1275,6 +1275,9 @@ int acpi_video_get_edid(struct acpi_deviif (!video_device)continue ; +if (!video_device->cap._DDC) +continue ; +if (type) {switch (type) {case ACPI_VIDEO_DISPLAY_CRT :
Quoted 5 lines · Zhang Rui
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 <[email protected]>
Acked-by Matthew Garrett <[email protected]>
Signature · 1 line
Matthew Garrett | [email protected]