mailbox: mtk-cmdq-mailbox: Use platform data directly instead of copying
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 2 Nov 2022 10:07:36 +0000 (11:07 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Mon, 19 Dec 2022 02:40:30 +0000 (20:40 -0600)
commitacabe12c6106b105ac8285d6d5ba2aeeab74fd47
treefca0716f1602ee1357b3a33a09a52bceb79662b8
parent165b7643f2df890066b1b4e8a387888a600ca9bf
mailbox: mtk-cmdq-mailbox: Use platform data directly instead of copying

Copying platform data to struct cmdq serves to no purpose, as that
data is never modified during runtime: it's worth at this point
storing a pointer to gce_plat in gce and.

Remove all duplicated `struct gce_plat` members from `struct gce`
and reuse the platform data across the driver to save some memory.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Reviewed-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mtk-cmdq-mailbox.c