diff options
author | Marek Vasut <marex@denx.de> | 2015-08-10 22:17:46 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-08-23 11:56:20 +0200 |
commit | cc9429a5562489cf8a4eb0d722c36e1bdfde4907 (patch) | |
tree | 3907710cba63052981d266478ecea447fa134c4f /arch/arm/mach-socfpga/wrap_pinmux_config.c | |
parent | f6badb0d89ae1221c8aa83138632613f91a48715 (diff) | |
download | u-boot-imx-cc9429a5562489cf8a4eb0d722c36e1bdfde4907.zip u-boot-imx-cc9429a5562489cf8a4eb0d722c36e1bdfde4907.tar.gz u-boot-imx-cc9429a5562489cf8a4eb0d722c36e1bdfde4907.tar.bz2 |
arm: socfpga: Make the pinmux table const u8
Now that we're actually converting the QTS-generated header files,
we can even adjust their data types. A good candidate for this is
the pinmux table, where each entry can have value in the range of
0..3, but each element is declared as unsigned long. By changing
the type to u8, we can save over 600 Bytes from the SPL, so do it.
This patch also constifies the array.
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'arch/arm/mach-socfpga/wrap_pinmux_config.c')
-rw-r--r-- | arch/arm/mach-socfpga/wrap_pinmux_config.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-socfpga/wrap_pinmux_config.c b/arch/arm/mach-socfpga/wrap_pinmux_config.c index bcb7781..a12f0b3 100644 --- a/arch/arm/mach-socfpga/wrap_pinmux_config.c +++ b/arch/arm/mach-socfpga/wrap_pinmux_config.c @@ -10,8 +10,7 @@ /* Board-specific header. */ #include <qts/pinmux_config.h> -void sysmgr_get_pinmux_table(const unsigned long **table, - unsigned int *table_len) +void sysmgr_get_pinmux_table(const u8 **table, unsigned int *table_len) { *table = sys_mgr_init_table; *table_len = ARRAY_SIZE(sys_mgr_init_table); |