projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
677bd81
)
ACPI video: check cap._DDC flag before getting EDID
author
Zhang Rui
<rui.zhang@intel.com>
Mon, 6 Dec 2010 07:04:24 +0000
(15:04 +0800)
committer
Len 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/video.c
b/drivers/acpi/video.c
index 81766ebec84312421de8d8e692051115bf0dbc0f..177b4ddc34790f10360ee140da28785d38c36473 100644
(file)
--- a/
drivers/acpi/video.c
+++ b/
drivers/acpi/video.c
@@
-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: