diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-12-11 10:54:03 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-12-11 10:58:17 +0100 |
commit | 8bc9efc85b8af8a23a0c86b04e2265730a220ade (patch) | |
tree | 380b4f19d149bcba97178305b35489d349908261 | |
parent | 10e0637d0387051e7524c9a8b964939c459938c9 (diff) | |
download | barebox-8bc9efc85b8af8a23a0c86b04e2265730a220ade.tar.gz barebox-8bc9efc85b8af8a23a0c86b04e2265730a220ade.tar.xz |
spi: store names in struct spi_device_id as pointers
Instead of putting an array for the names into struct spi_device_id
use pointers. This saves around 3000 bytes of binary space in a ARM32
barebox build.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | include/linux/mod_devicetable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 1fbb3dc5c1..2c04454260 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -21,7 +21,7 @@ struct pci_device_id { #define SPI_NAME_SIZE 32 struct spi_device_id { - char name[SPI_NAME_SIZE]; + const char *name; unsigned long driver_data; }; |