diff options
author | Andre Przywara <andre.przywara@arm.com> | 2023-06-07 01:07:42 +0100 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2023-07-21 00:29:42 +0100 |
commit | 457e2cd665bd0e17f6fe0be936525f7d3dd8efb5 (patch) | |
tree | e24fcbe7e26a3071d94408e883d388b516524a1a /arch/arm/include/asm | |
parent | c9dd624a380c2548afcbca0896e83fc6f2311a07 (diff) | |
download | u-boot-457e2cd665bd0e17f6fe0be936525f7d3dd8efb5.zip u-boot-457e2cd665bd0e17f6fe0be936525f7d3dd8efb5.tar.gz u-boot-457e2cd665bd0e17f6fe0be936525f7d3dd8efb5.tar.bz2 |
sunxi: H616: dram: const-ify DRAM function parameters
There are quite some functions in the Allwinner H616 DRAM "driver", some
of them actually change the parameters in the structure passed to them,
but many are actually not.
To increase the optimisation potential for the code, mark those functions
that just read members of the passed dram_para struct as "const".
This in itself does not decrease the code size, but lays the groundwork
for future changes doing so.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r-- | arch/arm/include/asm/arch-sunxi/dram_sun50i_h616.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-sunxi/dram_sun50i_h616.h b/arch/arm/include/asm/arch-sunxi/dram_sun50i_h616.h index 6db869c..34d19f7 100644 --- a/arch/arm/include/asm/arch-sunxi/dram_sun50i_h616.h +++ b/arch/arm/include/asm/arch-sunxi/dram_sun50i_h616.h @@ -171,6 +171,6 @@ static inline int ns_to_t(int nanoseconds) return DIV_ROUND_UP(ctrl_freq * nanoseconds, 1000); } -void mctl_set_timing_params(struct dram_para *para); +void mctl_set_timing_params(const struct dram_para *para); #endif /* _SUNXI_DRAM_SUN50I_H616_H */ |