backend/drm: add DRM_MODE_CONNECTOR_USB to conn_get_name

See 757e26712337 ("drm/uapi: Add USB connector type") in the kernel
tree.
This commit is contained in:
Simon Ser 2021-07-21 08:47:35 +02:00
parent cc8bc0db20
commit 66c42f4fcb
1 changed files with 3 additions and 0 deletions

View File

@ -167,6 +167,9 @@ const char *conn_get_name(uint32_t type_id) {
case DRM_MODE_CONNECTOR_WRITEBACK: return "Writeback";
#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";
}