drm/exynos: add exynos_drm_crtc_init function
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 31 Dec 2018 12:09:44 +0000 (13:09 +0100)
committerAndrzej Hajda <a.hajda@samsung.com>
Wed, 20 Mar 2019 11:48:11 +0000 (12:48 +0100)
commit282adc14b1c7b5c459c436a60a326968eea73f2d
tree80a23f6cb4bce46c82fb0916f50b3f6a463568a7
parentdafda03c04c8d03b8787612632079c7711e12572
drm/exynos: add exynos_drm_crtc_init function

Since exynos_drm_crtc is a struct which maps 1:1 to underlying device it
is better to put it directly into device's context instead of allocating
it separately. Another benefit is possibility of initialisation of
its fields directly, without expanding exynos_drm_crtc_create which is
already overloaded with number of arguments.
As a first step of the transition initialisation function should be
created.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_crtc.c
drivers/gpu/drm/exynos/exynos_drm_crtc.h