diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2014-10-31 14:32:32 +0000 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2015-01-25 21:28:01 +0900 |
commit | ffceaed64ed103fea35e3546227a86441a7e61e4 (patch) | |
tree | 08f74bac47c684c799165922e4067074b2dc48c1 | |
parent | 281d1bbd34b734e4f22b30b6f3b673dda46a7470 (diff) | |
download | linux-stable-ffceaed64ed103fea35e3546227a86441a7e61e4.tar.gz linux-stable-ffceaed64ed103fea35e3546227a86441a7e61e4.tar.bz2 linux-stable-ffceaed64ed103fea35e3546227a86441a7e61e4.zip |
drm/exynos: move to_exynos_crtc() macro to main header
With this change we allow other pieces of the code to use this macro.
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_crtc.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_drv.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c index 45026e693225..c8a3169ab977 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c @@ -20,9 +20,6 @@ #include "exynos_drm_encoder.h" #include "exynos_drm_plane.h" -#define to_exynos_crtc(x) container_of(x, struct exynos_drm_crtc,\ - drm_crtc) - enum exynos_crtc_mode { CRTC_MODE_NORMAL, /* normal mode */ CRTC_MODE_BLANK, /* The private plane of crtc is blank */ diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index 2e5063488c50..abbee752d64b 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h @@ -23,6 +23,9 @@ #define MAX_FB_BUFFER 4 #define DEFAULT_ZPOS -1 +#define to_exynos_crtc(x) container_of(x, struct exynos_drm_crtc,\ + drm_crtc) + /* This enumerates device type. */ enum exynos_drm_device_type { EXYNOS_DEVICE_TYPE_NONE, |