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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:53:28 +0000 (11:53 +0200)
commite63a796b852fe72912db7ad98889a121fe19dd2c
tree1f6a26cd8b9f0d133d635aea05bc6560968bc1e7
parentb12078b67a6d4f2231726ac5ad2c2404340301a6
mailbox: zynq: Switch to flexible array to simplify code

[ Upstream commit 043f85ce81cb1714e14d31c322c5646513dde3fb ]

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>
Stable-dep-of: f72f805e7288 ("mailbox: zynqmp: Fix counts of child nodes")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mailbox/zynqmp-ipi-mailbox.c