]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mediatek: Remove struct cmdq_client
authorChun-Kuang Hu <chunkuang.hu@kernel.org>
Sun, 4 Jul 2021 07:36:48 +0000 (15:36 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 16 Aug 2021 23:08:11 +0000 (07:08 +0800)
commit7ce80127e607ce789e42060bf80732627082b234
tree1f28584c472b98298a08756d57837b87253d1f72
parentd4377f43afa93d81f4e789a58a2c820083b4c85d
drm/mediatek: Remove 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 struct cmdq_client and let mtk_drm_crtc instance define
mbox_client as:

struct mtk_drm_crtc {
/* client instance data */
struct mbox_client cl;
};

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>
drivers/gpu/drm/mediatek/mtk_drm_crtc.c