diff mbox

modetest: add connector names for missing kinds of connectors

Message ID 1423208397-30788-1-git-send-email-human.hwang@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Hyungwon Hwang Feb. 6, 2015, 7:39 a.m. UTC
Without the matched name for the connector types, modetest prints
invalid for that kinds of connectors like below:

Connectors:
id	encoder	status		type	size (mm)	modes	encoders
16	15	connected	(invalid)	71x125		1	15

So this patch adds connector names for missing kinds of connector types.

Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
---
 tests/modetest/modetest.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index 5fcf2a4..f5a973c 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -168,6 +168,8 @@  struct type_name connector_type_names[] = {
 	{ DRM_MODE_CONNECTOR_HDMIB, "HDMI-B" },
 	{ DRM_MODE_CONNECTOR_TV, "TV" },
 	{ DRM_MODE_CONNECTOR_eDP, "eDP" },
+	{ DRM_MODE_CONNECTOR_VIRTUAL, "virtual" },
+	{ DRM_MODE_CONNECTOR_DSI, "dsi" },
 };
 
 static type_name_fn(connector_type)