From: Quanyang Wang <quanyang.wang@xxxxxxxxxxxxx> Hi all, The patch "drm: xlnx: add is_layer_vid() to simplify the code" is to simplify the code which judge the layer type. The patch "drm: xlnx: consolidate the functions which programming AUDIO_VIDEO_SELECT register" is to consolidate the code that can configure vid/gfx/audio to output different mode (live/mem/disable/tpg) in one function "zynqmp_disp_avbuf_output_select". Changelogs: V1 ---> V2: - As per Paul's comments, add "const" to the argument "layer" of the function is_layer_vid, and just return the result of "==" operator, and add Acked-by from Paul. - As per Paul's comments, fix some pattern errors and use FIELD_PREP() macro instead of *_SHIFT and use GENMASK/BIT to create *_MASK macros. Thanks, Quanyang Quanyang Wang (2): drm: xlnx: add is_layer_vid() to simplify the code drm: xlnx: consolidate the functions which programming AUDIO_VIDEO_SELECT register drivers/gpu/drm/xlnx/zynqmp_disp.c | 193 ++++++++++++++---------- drivers/gpu/drm/xlnx/zynqmp_disp_regs.h | 23 +-- 2 files changed, 121 insertions(+), 95 deletions(-) -- 2.25.1