[igt-dev] [PATCH i-g-t] lib/igt_kms: remove unused update_edid_csum
contact at emersion.fr
contact at emersion.fr
Thu Jul 11 17:43:07 UTC 2019
From: Simon Ser <contact at emersion.fr>
I missed it when removing the old EDID generation code.
Signed-off-by: Simon Ser <contact at emersion.fr>
---
lib/igt_kms.c | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 8a76acf9e8e4..175e71c310b7 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -87,24 +87,6 @@
static char *forced_connectors[MAX_CONNECTORS + 1];
static int forced_connectors_device[MAX_CONNECTORS + 1];
-static void update_edid_csum(unsigned char *edid, int cea_pos)
-{
- int i, sum = 0;
- struct tm *tm;
- time_t t;
-
- /* year of manufacture */
- t = time(NULL);
- tm = localtime(&t);
- edid[17] = tm->tm_year - 90;
-
- /* calculate checksum */
- for (i = 0; i < 127; i++) {
- sum = sum + edid[cea_pos + i];
- }
- edid[cea_pos + 127] = 256 - sum;
-}
-
/**
* igt_kms_get_base_edid:
*
--
2.22.0
More information about the igt-dev
mailing list