From: Ley Foon Tan <ley.foon.tan@intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ddr: socfpga: gen5: constify altera_gen5_sdram_ops
Date: Thu, 24 Oct 2019 10:55:26 +0800 [thread overview]
Message-ID: <1571885726.2504.16.camel@intel.com> (raw)
In-Reply-To: <20191023201937.24669-1-simon.k.r.goldschmidt@gmail.com>
On Wed, 2019-10-23 at 22:19 +0200, Simon Goldschmidt wrote:
> 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 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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,
> };
>
prev parent reply other threads:[~2019-10-24 2:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-23 20:19 [U-Boot] [PATCH] ddr: socfpga: gen5: constify altera_gen5_sdram_ops Simon Goldschmidt
2019-10-24 2:55 ` Ley Foon Tan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1571885726.2504.16.camel@intel.com \
--to=ley.foon.tan@intel.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox