[Intel-gfx] [PATCH 2/3] drm: reset ELD if NULL edid is passed to drm_edid_to_eld
Jani Nikula
jani.nikula at intel.com
Thu Feb 16 10:36:43 UTC 2017
Make the function useful for resetting, not just setting, the ELD.
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
drivers/gpu/drm/drm_edid.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index 24e7b282f16c..362036360724 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -3430,6 +3430,9 @@ void drm_edid_to_eld(struct drm_connector *connector, struct edid *edid)
memset(eld, 0, sizeof(connector->eld));
+ if (!edid)
+ return;
+
connector->latency_present[0] = false;
connector->latency_present[1] = false;
connector->video_latency[0] = 0;
--
2.1.4
More information about the Intel-gfx
mailing list