aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-07-21 08:47:35 +0200
committerSimon Ser <contact@emersion.fr>2021-07-21 08:47:35 +0200
commit66c42f4fcb77724d9b19829eeb0c66fe4771f2db (patch)
tree1c1b026d61aa1c7a96cdf919ebfcc1fc79d88c92 /backend/drm
parentcc8bc0db20659fde7ce94684bf6abcf172218ab6 (diff)
backend/drm: add DRM_MODE_CONNECTOR_USB to conn_get_name
See 757e26712337 ("drm/uapi: Add USB connector type") in the kernel tree.
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/drm/util.c b/backend/drm/util.c
index 86dc1517..69748fcf 100644
--- a/backend/drm/util.c
+++ b/backend/drm/util.c
@@ -168,6 +168,9 @@ const char *conn_get_name(uint32_t type_id) {
#ifdef DRM_MODE_CONNECTOR_SPI
case DRM_MODE_CONNECTOR_SPI: return "SPI";
#endif
+#ifdef DRM_MODE_CONNECTOR_USB
+ case DRM_MODE_CONNECTOR_USB: return "USB";
+#endif
default: return "Unknown";
}
}