drm: support drm_get_connector_name
authorMark Yao <mark.yao@rock-chips.com>
Fri, 24 Feb 2017 08:57:54 +0000 (16:57 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 27 Feb 2017 10:56:51 +0000 (18:56 +0800)
Change-Id: I075d948afc2baa47fb147f9a967844a872171397
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h

index cc5a0e7063cca9379ecff99eb0b30ef5b736062f..8e0bcfba74e3e11814cdaf8521af97436333a9c3 100644 (file)
@@ -170,6 +170,8 @@ static struct drm_conn_prop_enum_list drm_connector_enum_list[] = {
        { DRM_MODE_CONNECTOR_DSI, "DSI" },
 };
 
+DRM_ENUM_NAME_FN(drm_get_connector_name, drm_connector_enum_list)
+
 static const struct drm_prop_enum_list drm_encoder_enum_list[] = {
        { DRM_MODE_ENCODER_NONE, "None" },
        { DRM_MODE_ENCODER_DAC, "DAC" },
index f525cb578b08f4901d457d5de4ee11abfc645524..a9e50f0cae9310227bd167722cfbbd3b6106e122 100644 (file)
@@ -1416,6 +1416,7 @@ extern const char *drm_get_dvi_i_subconnector_name(int val);
 extern const char *drm_get_dvi_i_select_name(int val);
 extern const char *drm_get_tv_subconnector_name(int val);
 extern const char *drm_get_tv_select_name(int val);
+extern const char *drm_get_connector_name(int val);
 extern void drm_fb_release(struct drm_file *file_priv);
 extern void drm_property_destroy_user_blobs(struct drm_device *dev,
                                             struct drm_file *file_priv);