[Intel-gfx] [PATCH i-g-t 2/4] tools/intel_vbt_decode: Remove unused code

Petri Latvala petri.latvala at intel.com
Wed Mar 8 14:44:33 UTC 2017


efp_conn() and related have been unused since 86a546f6f798
("tools/intel_bios_reader: Dump out more information from the child
device structure")

Signed-off-by: Petri Latvala <petri.latvala at intel.com>
---
 tools/intel_vbt_decode.c | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
index 301cd1c..2984a11 100644
--- a/tools/intel_vbt_decode.c
+++ b/tools/intel_vbt_decode.c
@@ -372,28 +372,6 @@ static const char *efp_port(uint8_t type)
 	return "unknown";
 }
 
-static const struct {
-	unsigned short type;
-	const char *name;
-} efp_conn_info[] = {
-	{ DEVICE_INFO_NONE, "N/A" },
-	{ DEVICE_INFO_HDMI_CERT, "HDMI certified" },
-	{ DEVICE_INFO_DP, "DisplayPort" },
-	{ DEVICE_INFO_DVI, "DVI" },
-};
-static const int num_efp_conn_info = sizeof(efp_conn_info) / sizeof(efp_conn_info[0]);
-
-static const char *efp_conn(uint8_t type)
-{
-	int i;
-
-	for (i = 0; i < num_efp_conn_info; i++)
-		if (efp_conn_info[i].type == type)
-			return efp_conn_info[i].name;
-
-	return "unknown";
-}
-
 static void dump_child_device(struct context *context,
 			      const struct child_device_config *child)
 {
-- 
2.9.3



More information about the Intel-gfx mailing list