mailbox: mtk-cmdq: Move and partially refactor clocks probe
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 20 Jun 2024 10:07:48 +0000 (12:07 +0200)
committerJassi Brar <jassisinghbrar@gmail.com>
Wed, 10 Jul 2024 18:24:55 +0000 (13:24 -0500)
commit0af932c5fc44d2709c9f87a15bcd6cd376901e23
tree869fac2a121de34d03153e0c37f3994cc01c8abd
parentdb9344804cfa7ceca17aab71a3130736a7a2ac9d
mailbox: mtk-cmdq: Move and partially refactor clocks probe

Move the clocks probe to a new cmdq_get_clocks() function; while
at it, partially refactor the code:

Drop the clk_names[] array and assign clock names to the array
of clk_bulk_data with devm_kasprintf() instead, slightly reduce
the indentation for the multi-gce clock probe path and add a
comment describing the reason why we get clocks of other GCE
instance instead of just the clock from the one that it is
getting probed.

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