]> git.baikalelectronics.ru Git - kernel.git/commit
drm: xlnx: zynqmp_dpsub: Pass disp structure to all internal functions
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 7 Mar 2021 00:56:58 +0000 (02:56 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 8 Aug 2021 23:28:04 +0000 (02:28 +0300)
commitb7f4753d7b71a87f0769a07da8c4beebc6903a2f
treea1f0854a27f0ac18626bac2427524f5c440792d0
parent1e42874b0df79a65fe9a2f4c2d3a71d5b64bcfb6
drm: xlnx: zynqmp_dpsub: Pass disp structure to all internal functions

The internal functions dealing with the audio/video buffer manager, the
blender, and the audio mixer, all receive pointers to the respective
objects. Those objects are embedded in the zynqmp_disp structure, and a
very small. Treating them as separate objects would require expanding
them with back-pointers to the zynqmp_disp in order to access fields
such as the device pointer for debug messages, and this isn't worth it.

Instead, merge those structures with the zynqmp_disp structure, and pass
the zynqmp_disp pointer to all internal functions.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/xlnx/zynqmp_disp.c