From: Sascha Hauer <s.hauer@pengutronix.de>
To: BAREBOX <barebox@lists.infradead.org>
Subject: [PATCH 3/4] nvmem: snvs_lpgpr: set nvmem config name to snvs
Date: Mon, 08 Sep 2025 10:31:57 +0200 [thread overview]
Message-ID: <20250908-imx8-snvs-v1-3-1049458a0286@pengutronix.de> (raw)
In-Reply-To: <20250908-imx8-snvs-v1-0-1049458a0286@pengutronix.de>
Set the nvmem config name to "snvs". Without it the cdev shows up as
/dev/30370000.snvs@30370000:snvs-lpgpr.of0.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
drivers/nvmem/snvs_lpgpr.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/nvmem/snvs_lpgpr.c b/drivers/nvmem/snvs_lpgpr.c
index e29fa2bf3aec1e9b5b19beee4ac5440b6b18e018..95ce023a14c4b79934fcfc15d7d5b82fa7f85e24 100644
--- a/drivers/nvmem/snvs_lpgpr.c
+++ b/drivers/nvmem/snvs_lpgpr.c
@@ -125,6 +125,8 @@ static int snvs_lpgpr_probe(struct device *dev)
cfg->size = priv->dcfg->size;
cfg->reg_write = snvs_lpgpr_write;
cfg->reg_read = snvs_lpgpr_read;
+ cfg->name = "snvs";
+ cfg->id = NVMEM_DEVID_NONE;
nvmem = nvmem_register(cfg);
if (IS_ERR(nvmem)) {
--
2.47.3
next prev parent reply other threads:[~2025-09-08 9:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-08 8:31 [PATCH 0/4] i.MX8M: Add SNVS support Sascha Hauer
2025-09-08 8:31 ` [PATCH 1/4] ARM: i.MX8M: initialize SNVS Sascha Hauer
2025-09-08 8:31 ` [PATCH 2/4] nvmem: snvs_lpgpr: Add i.MX7/8 support Sascha Hauer
2025-09-08 8:31 ` Sascha Hauer [this message]
2025-09-08 8:31 ` [PATCH 4/4] ARM: defconfigs: enable SNVS driver in i.MX8 configs Sascha Hauer
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=20250908-imx8-snvs-v1-3-1049458a0286@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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