diff options
| author | Luca Ceresoli <[email protected]> | 2025-05-09 13:53:44 +0000 |
|---|---|---|
| committer | Luca Ceresoli <[email protected]> | 2025-05-27 09:35:20 +0000 |
| commit | 99764593528f9e0ee9509f9e4a4eb21db99d0681 (patch) | |
| tree | 950cefc4e5dfafc7786aa1cbdfefac342f782c50 /drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | |
| parent | drm/sitronix: Remove broken backwards-compatibility layer (diff) | |
| download | kernel-99764593528f9e0ee9509f9e4a4eb21db99d0681.tar.gz kernel-99764593528f9e0ee9509f9e4a4eb21db99d0681.zip | |
drm/bridge: imx8qxp-pixel-combiner: convert to devm_drm_bridge_alloc() API
This is the new API for allocating DRM bridges.
This driver embeds an array of channels in the main struct, and each
channel embeds a drm_bridge. This prevents dynamic, refcount-based
deallocation of the bridges.
To make the new, dynamic bridge allocation possible:
* change the array of channels into an array of channel pointers
* allocate each channel using devm_drm_bridge_alloc()
* adapt the code wherever using the channels
* remove the is_available flag, now "ch != NULL" is equivalent
Reviewed-by: Liu Ying <[email protected]>
Link: https://lore.kernel.org/r/20250509-drm-bridge-convert-to-alloc-api-v3-18-b8bc1f16d7aa@bootlin.com
Signed-off-by: Luca Ceresoli <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_job.c')
0 files changed, 0 insertions, 0 deletions
