mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -626,7 +626,7 @@ static int altera_gen5_sdram_get_info(struct udevice *dev,
|
||||||
return 0;
|
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,
|
.get_info = altera_gen5_sdram_get_info,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue