From: Simon Goldschmidt Date: Wed, 23 Oct 2019 20:19:37 +0000 (+0200) Subject: ddr: socfpga: gen5: constify altera_gen5_sdram_ops X-Git-Tag: v2020.01-rc4~14^2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aacd7b922f052a53c34e3b2d2c92bac27e16dad5;p=oweals%2Fu-boot.git ddr: socfpga: gen5: constify altera_gen5_sdram_ops Make the function pointer struct const, as it does not need to be writable. This doesn't really change anything other than moving this variable to a different section. No functional change. Signed-off-by: Simon Goldschmidt Reviewed-by: Ley Foon Tan --- diff --git a/drivers/ddr/altera/sdram_gen5.c b/drivers/ddr/altera/sdram_gen5.c index fcd89b619d..8c8ea19eb9 100644 --- a/drivers/ddr/altera/sdram_gen5.c +++ b/drivers/ddr/altera/sdram_gen5.c @@ -626,7 +626,7 @@ static int altera_gen5_sdram_get_info(struct udevice *dev, return 0; } -static struct ram_ops altera_gen5_sdram_ops = { +static const struct ram_ops altera_gen5_sdram_ops = { .get_info = altera_gen5_sdram_get_info, };