aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorChun-Kuang Hu <chunkuang.hu@kernel.org>2021-10-28 18:19:08 +0800
committerChun-Kuang Hu <chunkuang.hu@kernel.org>2021-11-18 07:25:47 +0800
commit563c9d4a5b117552150efbecbaf0877947e98a32 (patch)
tree1d9c5df4d0ea1c5721b6d012b01f37548260c6f7 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parent1ee07a683b7e4e6ad9ad4f77fce4751741bc8ceb (diff)
drm/mediatek: Remove the pointer of struct cmdq_client
In mailbox rx_callback, it pass struct mbox_client to callback function, but it could not map back to mtk_drm_crtc instance because struct cmdq_client use a pointer to struct mbox_client: struct cmdq_client { struct mbox_client client; struct mbox_chan *chan; }; struct mtk_drm_crtc { /* client instance data */ struct cmdq_client *cmdq_client; }; so remove the pointer of struct cmdq_client and let mtk_drm_crtc instance define cmdq_client as: struct mtk_drm_crtc { /* client instance data */ struct cmdq_client cmdq_client; }; and in rx_callback function, use struct mbox_client to get struct mtk_drm_crtc. Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org> Signed-off-by: jason-jh.lin <jason-jh.lin@mediatek.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions