mailbox: omap: Merge mailbox child node setup loops
authorAndrew Davis <afd@ti.com>
Wed, 10 Apr 2024 13:59:37 +0000 (08:59 -0500)
committerJassi Brar <jassisinghbrar@gmail.com>
Mon, 20 May 2024 03:29:44 +0000 (22:29 -0500)
commit7077ac4c6097c4d872f0fd504050cdc13cfc528f
tree932b4d35bd1739158f30160f4ab3fcb7a30dc84b
parente4e8b1fe742f2faba7ea248884f5833ef01c67ea
mailbox: omap: Merge mailbox child node setup loops

Currently the driver loops through all mailbox child nodes twice, once
to read in data from each node, and again to make use of this data.
Instead read the data and make use of it in one pass. This removes
the need for several temporary data structures and reduces the
complexity of this main loop in probe.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/omap-mailbox.c