mailbox: zynq: Switch to flexible array to simplify code
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 20 Nov 2022 08:25:54 +0000 (09:25 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Thu, 23 Feb 2023 20:47:12 +0000 (14:47 -0600)
commit043f85ce81cb1714e14d31c322c5646513dde3fb
tree854c53b70da9661adaaeb6a45772a42eb6c7b90e
parentceaa837f96adb69c0df0397937cd74991d5d821a
mailbox: zynq: Switch to flexible array to simplify code

Using flexible array is more straight forward. It
  - saves 1 pointer in the 'zynqmp_ipi_pdata' structure
  - saves an indirection when using this array
  - saves some LoC and avoids some always spurious pointer arithmetic

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/zynqmp-ipi-mailbox.c