diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2015-07-16 11:23:38 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2015-08-15 21:23:35 -0400 |
commit | d88d2463fecb13c67d8eec78c4b61671900deb94 (patch) | |
tree | b04e9d9a18817ffcd9947e82b9a84b7d83a5b5be /drivers/gpu/drm/exynos/exynos_drm_plane.c | |
parent | a1bcc9da90ab44d29c38fc6e4a8dba633e97f3f3 (diff) |
drm/exynos: unify exynos_drm_plane names with drm core
Rename crtc_{widht,height} to crtc_{w,h} and src_{width,height} to
src_{w,h} to make it similar to the atomic state names.
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_plane.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_plane.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_plane.c b/drivers/gpu/drm/exynos/exynos_drm_plane.c index 960279777b05..bebc9572d404 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_plane.c +++ b/drivers/gpu/drm/exynos/exynos_drm_plane.c | |||
@@ -97,17 +97,18 @@ static void exynos_plane_mode_set(struct drm_plane *plane, | |||
97 | /* set drm framebuffer data. */ | 97 | /* set drm framebuffer data. */ |
98 | exynos_plane->src_x = src_x; | 98 | exynos_plane->src_x = src_x; |
99 | exynos_plane->src_y = src_y; | 99 | exynos_plane->src_y = src_y; |
100 | exynos_plane->src_width = (actual_w * exynos_plane->h_ratio) >> 16; | 100 | exynos_plane->src_w = (actual_w * exynos_plane->h_ratio) >> 16; |
101 | exynos_plane->src_height = (actual_h * exynos_plane->v_ratio) >> 16; | 101 | exynos_plane->src_h = (actual_h * exynos_plane->v_ratio) >> 16; |
102 | 102 | ||
103 | /* set plane range to be displayed. */ | 103 | /* set plane range to be displayed. */ |
104 | exynos_plane->crtc_x = crtc_x; | 104 | exynos_plane->crtc_x = crtc_x; |
105 | exynos_plane->crtc_y = crtc_y; | 105 | exynos_plane->crtc_y = crtc_y; |
106 | exynos_plane->crtc_width = actual_w; | 106 | exynos_plane->crtc_w = actual_w; |
107 | exynos_plane->crtc_height = actual_h; | 107 | exynos_plane->crtc_h = actual_h; |
108 | |||
108 | DRM_DEBUG_KMS("plane : offset_x/y(%d,%d), width/height(%d,%d)", | 109 | DRM_DEBUG_KMS("plane : offset_x/y(%d,%d), width/height(%d,%d)", |
109 | exynos_plane->crtc_x, exynos_plane->crtc_y, | 110 | exynos_plane->crtc_x, exynos_plane->crtc_y, |
110 | exynos_plane->crtc_width, exynos_plane->crtc_height); | 111 | exynos_plane->crtc_w, exynos_plane->crtc_h); |
111 | 112 | ||
112 | plane->crtc = crtc; | 113 | plane->crtc = crtc; |
113 | } | 114 | } |