sunxi: H616: dram: const-ify DRAM function parameters
authorAndre Przywara <andre.przywara@arm.com>
Wed, 7 Jun 2023 00:07:42 +0000 (01:07 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Thu, 20 Jul 2023 23:29:42 +0000 (00:29 +0100)
commit457e2cd665bd0e17f6fe0be936525f7d3dd8efb5
treee24fcbe7e26a3071d94408e883d388b516524a1a
parentc9dd624a380c2548afcbca0896e83fc6f2311a07
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>
arch/arm/include/asm/arch-sunxi/dram_sun50i_h616.h
arch/arm/mach-sunxi/dram_sun50i_h616.c
arch/arm/mach-sunxi/dram_timings/h616_ddr3_1333.c