drm: xlnx: zynqmp: Add zynqmp_disp_layer_is_video() to simplify the code
authorQuanyang Wang <quanyang.wang@windriver.com>
Tue, 18 May 2021 09:50:18 +0000 (17:50 +0800)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 8 Aug 2021 23:28:04 +0000 (02:28 +0300)
commit1e42874b0df79a65fe9a2f4c2d3a71d5b64bcfb6
treeeb8167ad750ee6cafa74d8585e9a36e4f9d5a481
parenta338619bd76011035d462f0f9e8b2f24d7fe5a1e
drm: xlnx: zynqmp: Add zynqmp_disp_layer_is_video() to simplify the code

Add a new function zynqmp_disp_layer_is_video() to simplify the code
that judges if a layer is the video layer.

Acked-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
[Renamed is_layer_vid() to zynqmp_disp_layer_is_video()]]
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/xlnx/zynqmp_disp.c