diff mbox series

drm/edid: Update comments for drm_find_edid_extension

Message ID 20220311112801.1.I8dff39863e3d7a30f13512d9ff50b38ce6743373@changeid (mailing list archive)
State New, archived
Headers show
Series drm/edid: Update comments for drm_find_edid_extension | expand

Commit Message

Drew Davenport March 11, 2022, 6:28 p.m. UTC
In (40d9b043a89e drm/connector: store tile information from displayid (v3))
this function was changed to find EDID extensions by id, but the comments
still are specific to the CEA extension.

Signed-off-by: Drew Davenport <ddavenport@chromium.org>

---

 drivers/gpu/drm/drm_edid.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index 561f53831e29..1afe73fbf3e0 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -3326,7 +3326,7 @@  add_detailed_modes(struct drm_connector *connector, struct edid *edid,
 #define EDID_CEA_VCDB_QS	(1 << 6)
 
 /*
- * Search EDID for CEA extension block.
+ * Search EDID for the extension block with id @ext_id.
  */
 const u8 *drm_find_edid_extension(const struct edid *edid,
 				  int ext_id, int *ext_index)
@@ -3338,7 +3338,7 @@  const u8 *drm_find_edid_extension(const struct edid *edid,
 	if (edid == NULL || edid->extensions == 0)
 		return NULL;
 
-	/* Find CEA extension */
+	/* Find extension that matches @ext_id */
 	for (i = *ext_index; i < edid->extensions; i++) {
 		edid_ext = (const u8 *)edid + EDID_LENGTH * (i + 1);
 		if (edid_ext[0] == ext_id)