From: Mark Yao Date: Fri, 24 Feb 2017 08:57:54 +0000 (+0800) Subject: drm: support drm_get_connector_name X-Git-Tag: firefly_0821_release~547 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e350deddebf2fa6fc06176eee6647b5e2f29c8fa;p=firefly-linux-kernel-4.4.55.git drm: support drm_get_connector_name Change-Id: I075d948afc2baa47fb147f9a967844a872171397 Signed-off-by: Mark Yao --- diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index cc5a0e7063cc..8e0bcfba74e3 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c @@ -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" }, diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index f525cb578b08..a9e50f0cae93 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h @@ -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);