mailbox: mtk-cmdq: Dynamically allocate clk_bulk_data structure
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 20 Jun 2024 10:07:49 +0000 (12:07 +0200)
committerJassi Brar <jassisinghbrar@gmail.com>
Wed, 10 Jul 2024 18:24:55 +0000 (13:24 -0500)
commitaa1609f571caba0db102c611829d48adf226bb70
treed973b2fb2b36018c126022e430909a01a2201d90
parent0af932c5fc44d2709c9f87a15bcd6cd376901e23
mailbox: mtk-cmdq: Dynamically allocate clk_bulk_data structure

Now that the clock probing code uses devm_kasprintf(), there is
no more restriction on the number of GCEs: dynamically allocate
the clk_bulk_data clocks array to improve flexibility and also
to get a slight memory saving on platforms featuring only one
CMDQ mailbox (and consequently only one Global Command Engine).

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/mtk-cmdq-mailbox.c