diff options
author | Tobias Jakobi <tjakobi@math.uni-bielefeld.de> | 2017-08-22 16:19:44 +0200 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2017-08-25 14:30:27 +0900 |
commit | 5b7b1b7fa10145c014750b09ff4cf31ac4e1843a (patch) | |
tree | 96ac0ba54a2e421cead0d9aeb3f71e21d5a7ec22 /drivers/gpu/drm/exynos/exynos_drm_fimd.c | |
parent | ac60944ccf2388901412a0c9a0e7e3e4b56520a4 (diff) | |
download | blackbird-op-linux-5b7b1b7fa10145c014750b09ff4cf31ac4e1843a.tar.gz blackbird-op-linux-5b7b1b7fa10145c014750b09ff4cf31ac4e1843a.zip |
drm/exynos: simplify set_pixfmt() in DECON and FIMD drivers
DRM core already checks the validity of the pixelformat.
Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_fimd.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fimd.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index ebc2077b1253..d42ae2bc3e56 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -583,18 +583,12 @@ static void fimd_win_set_pixfmt(struct fimd_context *ctx, unsigned int win, val |= WINCONx_BURSTLEN_16WORD; break; case DRM_FORMAT_ARGB8888: + default: val |= WINCON1_BPPMODE_25BPP_A1888 | WINCON1_BLD_PIX | WINCON1_ALPHA_SEL; val |= WINCONx_WSWP; val |= WINCONx_BURSTLEN_16WORD; break; - default: - DRM_DEBUG_KMS("invalid pixel size so using unpacked 24bpp.\n"); - - val |= WINCON0_BPPMODE_24BPP_888; - val |= WINCONx_WSWP; - val |= WINCONx_BURSTLEN_16WORD; - break; } /* |