summaryrefslogtreecommitdiffstats
path: root/include/linux/mailbox
diff options
context:
space:
mode:
authorChun-Kuang Hu <chunkuang.hu@kernel.org>2022-06-08 22:40:55 +0800
committerJassi Brar <jaswinder.singh@linaro.org>2022-08-02 15:06:57 -0500
commitd9c26e0a58b0039d1ad4340d826fe8db866e9455 (patch)
tree7f4ab1e6820d11d48712ec50f48edca8d475d02b /include/linux/mailbox
parente0dccc3b76fb35bb257b4118367a883073d7390e (diff)
downloadlinux-d9c26e0a58b0039d1ad4340d826fe8db866e9455.tar.bz2
mailbox: mtk-cmdq: Remove proprietary cmdq_task_cb
rx_callback is a standard mailbox callback mechanism and could cover the function of proprietary cmdq_task_cb, so use the standard one instead of the proprietary one. Client driver has changed to use standard rx_callback, so remove proprietary cmdq_task_cb. Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'include/linux/mailbox')
-rw-r--r--include/linux/mailbox/mtk-cmdq-mailbox.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/mailbox/mtk-cmdq-mailbox.h b/include/linux/mailbox/mtk-cmdq-mailbox.h
index 44365aab043c..a8f0070c7aa9 100644
--- a/include/linux/mailbox/mtk-cmdq-mailbox.h
+++ b/include/linux/mailbox/mtk-cmdq-mailbox.h
@@ -67,24 +67,14 @@ enum cmdq_code {
struct cmdq_cb_data {
int sta;
- void *data;
struct cmdq_pkt *pkt;
};
-typedef void (*cmdq_async_flush_cb)(struct cmdq_cb_data data);
-
-struct cmdq_task_cb {
- cmdq_async_flush_cb cb;
- void *data;
-};
-
struct cmdq_pkt {
void *va_base;
dma_addr_t pa_base;
size_t cmd_buf_size; /* command occupied size */
size_t buf_size; /* real buffer size */
- struct cmdq_task_cb cb;
- struct cmdq_task_cb async_cb;
void *cl;
};