summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_edid.h
diff options
context:
space:
mode:
authorStanislav Lisovskiy <stanislav.lisovskiy@intel.com>2020-06-30 05:56:58 +0530
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2020-06-30 13:31:15 +0200
commit536faa450e17f32fddb1a2124e3df71a966122cd (patch)
treed7c36abd6fa032fc21dc6f044b20295176001a2b /include/drm/drm_edid.h
parente9d636ab77ea2d1beeaf2bbb881331318ea5a6eb (diff)
downloadlinux-536faa450e17f32fddb1a2124e3df71a966122cd.tar.gz
linux-536faa450e17f32fddb1a2124e3df71a966122cd.tar.bz2
linux-536faa450e17f32fddb1a2124e3df71a966122cd.zip
drm: Add helper to compare edids.
Many drivers would benefit from using drm helper to compare edid, rather than bothering with own implementation. v2: Added documentation for this function. Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200630002700.5451-2-kunal1.joshi@intel.com
Diffstat (limited to 'include/drm/drm_edid.h')
-rw-r--r--include/drm/drm_edid.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h
index 43254319ab19..cfa4f5af49af 100644
--- a/include/drm/drm_edid.h
+++ b/include/drm/drm_edid.h
@@ -359,6 +359,15 @@ drm_load_edid_firmware(struct drm_connector *connector)
}
#endif
+/**
+ * drm_edid_are_equal - compare two edid blobs.
+ * @edid1: pointer to first blob
+ * @edid2: pointer to second blob
+ * This helper can be used during probing to determine if
+ * edid had changed.
+ */
+bool drm_edid_are_equal(const struct edid *edid1, const struct edid *edid2);
+
int
drm_hdmi_avi_infoframe_from_display_mode(struct hdmi_avi_infoframe *frame,
const struct drm_connector *connector,