projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8d3b05
)
spi: nxp-fspi: make const array ls1028a_soc_attr static
author
Colin Ian King
<colin.i.king@gmail.com>
Wed, 2 Nov 2022 15:29:04 +0000
(15:29 +0000)
committer
Mark Brown
<broonie@kernel.org>
Wed, 2 Nov 2022 16:44:15 +0000
(16:44 +0000)
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>
drivers/spi/spi-nxp-fspi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-nxp-fspi.c
b/drivers/spi/spi-nxp-fspi.c
index
d6a65a9
..
1c1991a
100644
(file)
--- 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 */ }
};