Commit 6c6c49f2 authored by Colin Ian King's avatar Colin Ian King Committed by Mark Brown

spi: nxp-fspi: make const array ls1028a_soc_attr static

Don't populate the const array ls1028a_soc_attr on the stack, instead
make it static. Also makes the object code smaller.
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Acked-by: default avatarHan Xu <han.xu@nxp.com>
Link: https://lore.kernel.org/r/20221102152904.143423-1-colin.i.king@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent b8d3b056
...@@ -924,7 +924,7 @@ static int nxp_fspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) ...@@ -924,7 +924,7 @@ static int nxp_fspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op)
static void erratum_err050568(struct nxp_fspi *f) static void erratum_err050568(struct nxp_fspi *f)
{ {
const struct soc_device_attribute ls1028a_soc_attr[] = { static const struct soc_device_attribute ls1028a_soc_attr[] = {
{ .family = "QorIQ LS1028A" }, { .family = "QorIQ LS1028A" },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment