g2d: remove conditional compile for Secure DRM
authorCho KyongHo <pullip.cho@samsung.com>
Mon, 5 Mar 2018 06:55:56 +0000 (15:55 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:28:04 +0000 (14:28 +0900)
commitd685536fbe50f56468d2d0f66c7253df74db58d2
tree9365c9f31721a2a0ebc3ccff4cc4860db50376b7
parent9320fd771c906b17cafc27f35dfde2c03f8be4ec
g2d: remove conditional compile for Secure DRM

CONFIG_EXYNOS_CONTENT_PATH_PROTECTION is defined when Secure DRM is
ready. Statements that depend on CONFIG_EXYNOS_CONTENT_PATH_PROTECTION
are split by #ifdef for the selective compilation.
But the conditional compilation makes code readers hard to understand
the source code and therefore easy to make mistakes during maintenance
of the source code.
Conditional compilation by CONFIG_EXYNOS_CONTENT_PATH_PROTECTION is
also needed to be removed for G2D of Exynos9820 that does not rely on
the secure world to run both of secure and non-secure G2D jobs.

Change-Id: I097c6ab051f8c3cdefdc6a84a9509d94c2f3149d
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/gpu/exynos/g2d/g2d_command.c
drivers/gpu/exynos/g2d/g2d_regs.c
drivers/gpu/exynos/g2d/g2d_secure.h [new file with mode: 0644]
drivers/gpu/exynos/g2d/g2d_task.c