]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: mixer: simplify vp_video_buffer()
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Tue, 22 Aug 2017 14:19:38 +0000 (16:19 +0200)
committerInki Dae <inki.dae@samsung.com>
Fri, 25 Aug 2017 03:05:56 +0000 (12:05 +0900)
commitff5d4c99a4a94cc28e790f5a3ea797ce51cee05b
tree0a7cf44e95e134cc242eacf38e737b8d04fe5a38
parent7f5a2f5be09a856e80f07957c7b6f40bbe836e87
drm/exynos: mixer: simplify vp_video_buffer()

DRM core already checks in drm_atomic_plane_check() if the
pixelformat is valid. Hence we can drop the default case of
the switch statement and collapse most of the code.

Also rename the two booleans to reflect what true/false
actually means, and to avoid mixing CrCb/NV21 descriptions.

No functional change.

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_mixer.c