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 <simon.k.r.goldschmidt@gmail.com> Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
This commit is contained in:
parent
086269e17d
commit
aacd7b922f
@ -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,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user