aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_crtc.c
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2014-06-03 07:56:20 -0400
committerDave Airlie <airlied@redhat.com>2014-06-03 23:17:41 -0400
commit259338205c428454515a09654be69a9f6c983513 (patch)
treefbe2b707f62a95000202380c889bbf3aa7d39446 /drivers/gpu/drm/drm_crtc.c
parent72082093aefa5294801de91acdc25f5ea6722000 (diff)
drm: replace drm_get_connector_name() with direct name field use
Generated using semantic patch: @@ expression E; @@ - drm_get_connector_name(E) + E->name [airlied: regenerated] Acked-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r--drivers/gpu/drm/drm_crtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index edee61bccd14..242937c76638 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -1663,7 +1663,7 @@ int drm_mode_getresources(struct drm_device *dev, void *data,
1663 head) { 1663 head) {
1664 DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n", 1664 DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n",
1665 connector->base.id, 1665 connector->base.id,
1666 drm_get_connector_name(connector)); 1666 connector->name);
1667 if (put_user(connector->base.id, 1667 if (put_user(connector->base.id,
1668 connector_id + copied)) { 1668 connector_id + copied)) {
1669 ret = -EFAULT; 1669 ret = -EFAULT;
@@ -2458,7 +2458,7 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data,
2458 connector = obj_to_connector(obj); 2458 connector = obj_to_connector(obj);
2459 DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n", 2459 DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n",
2460 connector->base.id, 2460 connector->base.id,
2461 drm_get_connector_name(connector)); 2461 connector->name);
2462 2462
2463 connector_set[i] = connector; 2463 connector_set[i] = connector;
2464 } 2464 }