ddr: socfpga: gen5: constify altera_gen5_sdram_ops
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Wed, 23 Oct 2019 20:19:37 +0000 (22:19 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 20 Nov 2019 21:32:00 +0000 (22:32 +0100)
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 <simon.k.r.goldschmidt@gmail.com>
Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
drivers/ddr/altera/sdram_gen5.c

index fcd89b619dbe2bf5e7ab379170891c3bb52e21c3..8c8ea19eb9cf3f534041ba61738d1f09f5f1b5fa 100644 (file)
@@ -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,
 };