summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-11-02 15:29:04 +0000
committerMark Brown <broonie@kernel.org>2022-11-02 16:44:15 +0000
commit6c6c49f2c0993ab3ea4bb71a12c800afd0c59e30 (patch)
tree150eccdb6f91d1d4969f4c216fed3094cfe1b1e9 /drivers/spi
parentb8d3b056a78dcc941fd1a117697ab2b956c2953f (diff)
downloadlwn-6c6c49f2c0993ab3ea4bb71a12c800afd0c59e30.tar.gz
lwn-6c6c49f2c0993ab3ea4bb71a12c800afd0c59e30.zip
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: Colin Ian King <colin.i.king@gmail.com> Acked-by: Han Xu <han.xu@nxp.com> Link: https://lore.kernel.org/r/20221102152904.143423-1-colin.i.king@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-nxp-fspi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c
index d6a65a989ef8..1c1991a26c15 100644
--- a/drivers/spi/spi-nxp-fspi.c
+++ b/drivers/spi/spi-nxp-fspi.c
@@ -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)
{
- const struct soc_device_attribute ls1028a_soc_attr[] = {
+ static const struct soc_device_attribute ls1028a_soc_attr[] = {
{ .family = "QorIQ LS1028A" },
{ /* sentinel */ }
};