diff options
author | Andre Przywara <andre.przywara@arm.com> | 2023-06-07 03:07:42 +0300 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2023-07-21 02:29:42 +0300 |
commit | 457e2cd665bd0e17f6fe0be936525f7d3dd8efb5 (patch) | |
tree | e24fcbe7e26a3071d94408e883d388b516524a1a /arch/arm/include | |
parent | c9dd624a380c2548afcbca0896e83fc6f2311a07 (diff) | |
download | u-boot-457e2cd665bd0e17f6fe0be936525f7d3dd8efb5.tar.xz |
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')
-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 6db869c098..34d19f7143 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 */ |