diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2012-04-05 07:49:25 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2012-04-12 01:51:24 -0400 |
commit | a2ee151b6b6863d108552de82e02b77166ca23a8 (patch) | |
tree | 9e1ec043e025cd89415d0731a8aa039b54d0c544 /drivers/gpu | |
parent | a634dd54c05636a89a272e27e59118374065975e (diff) |
drm/exynos: use define instead of default_win member in struct mixer_context
The default_win member in struct mixer_context isn't change its value
after initialized to 0, so it's better using to define.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_mixer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c index 9c99514eefbf..563092e23882 100644 --- a/drivers/gpu/drm/exynos/exynos_mixer.c +++ b/drivers/gpu/drm/exynos/exynos_mixer.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include "exynos_drm_hdmi.h" | 38 | #include "exynos_drm_hdmi.h" |
39 | 39 | ||
40 | #define MIXER_WIN_NR 3 | 40 | #define MIXER_WIN_NR 3 |
41 | #define MIXER_DEFAULT_WIN 0 | ||
41 | 42 | ||
42 | #define get_mixer_context(dev) platform_get_drvdata(to_platform_device(dev)) | 43 | #define get_mixer_context(dev) platform_get_drvdata(to_platform_device(dev)) |
43 | 44 | ||
@@ -75,7 +76,6 @@ struct mixer_resources { | |||
75 | }; | 76 | }; |
76 | 77 | ||
77 | struct mixer_context { | 78 | struct mixer_context { |
78 | unsigned int default_win; | ||
79 | unsigned int irq; | 79 | unsigned int irq; |
80 | int pipe; | 80 | int pipe; |
81 | bool interlace; | 81 | bool interlace; |
@@ -640,7 +640,7 @@ static void mixer_win_mode_set(void *ctx, | |||
640 | 640 | ||
641 | win = overlay->zpos; | 641 | win = overlay->zpos; |
642 | if (win == DEFAULT_ZPOS) | 642 | if (win == DEFAULT_ZPOS) |
643 | win = mixer_ctx->default_win; | 643 | win = MIXER_DEFAULT_WIN; |
644 | 644 | ||
645 | if (win < 0 || win > MIXER_WIN_NR) { | 645 | if (win < 0 || win > MIXER_WIN_NR) { |
646 | DRM_ERROR("overlay plane[%d] is wrong\n", win); | 646 | DRM_ERROR("overlay plane[%d] is wrong\n", win); |
@@ -680,7 +680,7 @@ static void mixer_win_commit(void *ctx, int zpos) | |||
680 | DRM_DEBUG_KMS("[%d] %s, win: %d\n", __LINE__, __func__, win); | 680 | DRM_DEBUG_KMS("[%d] %s, win: %d\n", __LINE__, __func__, win); |
681 | 681 | ||
682 | if (win == DEFAULT_ZPOS) | 682 | if (win == DEFAULT_ZPOS) |
683 | win = mixer_ctx->default_win; | 683 | win = MIXER_DEFAULT_WIN; |
684 | 684 | ||
685 | if (win < 0 || win > MIXER_WIN_NR) { | 685 | if (win < 0 || win > MIXER_WIN_NR) { |
686 | DRM_ERROR("overlay plane[%d] is wrong\n", win); | 686 | DRM_ERROR("overlay plane[%d] is wrong\n", win); |
@@ -703,7 +703,7 @@ static void mixer_win_disable(void *ctx, int zpos) | |||
703 | DRM_DEBUG_KMS("[%d] %s, win: %d\n", __LINE__, __func__, win); | 703 | DRM_DEBUG_KMS("[%d] %s, win: %d\n", __LINE__, __func__, win); |
704 | 704 | ||
705 | if (win == DEFAULT_ZPOS) | 705 | if (win == DEFAULT_ZPOS) |
706 | win = mixer_ctx->default_win; | 706 | win = MIXER_DEFAULT_WIN; |
707 | 707 | ||
708 | if (win < 0 || win > MIXER_WIN_NR) { | 708 | if (win < 0 || win > MIXER_WIN_NR) { |
709 | DRM_ERROR("overlay plane[%d] is wrong\n", win); | 709 | DRM_ERROR("overlay plane[%d] is wrong\n", win); |