All of lore.kernel.org
 help / color / mirror / Atom feed
From: E Shattow <e@freeshell.de>
To: Minda Chen <minda.chen@starfivetech.com>,
	Hal Feng <hal.feng@starfivetech.com>,
	Leo Liang <ycliang@andestech.com>,
	Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Tom Rini <trini@konsulko.com>
Cc: u-boot@lists.denx.de, E Shattow <e@freeshell.de>
Subject: [PATCH v1 2/3] ram: starfive: use SZ_8G for 8GB memory size
Date: Wed, 29 Oct 2025 23:23:33 -0700	[thread overview]
Message-ID: <20251030062354.35413-3-e@freeshell.de> (raw)
In-Reply-To: <20251030062354.35413-1-e@freeshell.de>

Replace numeric literal with SZ_8G consistent with other uses of types
from linux/types.h

Signed-off-by: E Shattow <e@freeshell.de>
---
 drivers/ram/starfive/starfive_ddr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ram/starfive/starfive_ddr.c b/drivers/ram/starfive/starfive_ddr.c
index 9e902f03ee9..f030192f6f4 100644
--- a/drivers/ram/starfive/starfive_ddr.c
+++ b/drivers/ram/starfive/starfive_ddr.c
@@ -43,7 +43,7 @@ static int starfive_ddr_setup(struct udevice *dev, struct starfive_ddr_priv *pri
 		size = DDR_SIZE_4G;
 		break;
 
-	case 0x200000000:
+	case SZ_8G:
 		size = DDR_SIZE_8G;
 		break;
 
-- 
2.50.0


  parent reply	other threads:[~2025-10-30  6:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-30  6:23 [PATCH v1 0/3] ram: starfive: cleanup size types and typos E Shattow
2025-10-30  6:23 ` [PATCH v1 1/3] ram: starfive: drop references to 16GB memory size E Shattow
2025-10-30  7:53   ` Heinrich Schuchardt
2025-11-03  4:21     ` E Shattow
2025-10-30  6:23 ` E Shattow [this message]
2025-10-30  6:31   ` [PATCH v1 2/3] ram: starfive: use SZ_8G for 8GB " Hal Feng
2025-10-30  7:56   ` Heinrich Schuchardt
2025-10-30  6:23 ` [PATCH v1 3/3] ram: starfive: fix typo for unsupported DDR size E Shattow
2025-10-30  7:55   ` Heinrich Schuchardt

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=20251030062354.35413-3-e@freeshell.de \
    --to=e@freeshell.de \
    --cc=hal.feng@starfivetech.com \
    --cc=minda.chen@starfivetech.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    --cc=ycliang@andestech.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.