From: srini@kernel.org
To: gregkh@linuxfoundation.org
Cc: linux-kernel@vger.kernel.org, Srinivas Kandagatla <srini@kernel.org>
Subject: [PATCH 5/8] nvmem: make nvmem_bus_type constant
Date: Sat, 12 Jul 2025 19:19:01 +0100 [thread overview]
Message-ID: <20250712181905.6738-6-srini@kernel.org> (raw)
In-Reply-To: <20250712181905.6738-1-srini@kernel.org>
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Now that the driver core can properly handle constant struct bus_type,
move the nvmem_bus_type variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.
Cc: Srinivas Kandagatla <srini@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
drivers/nvmem/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c
index 880572ba515a..817f55f3a19e 100644
--- a/drivers/nvmem/core.c
+++ b/drivers/nvmem/core.c
@@ -544,7 +544,7 @@ static const struct device_type nvmem_provider_type = {
.release = nvmem_release,
};
-static struct bus_type nvmem_bus_type = {
+static const struct bus_type nvmem_bus_type = {
.name = "nvmem",
};
--
2.43.0
next prev parent reply other threads:[~2025-07-12 18:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-12 18:18 [PATCH 0/8] nvmem: patches (set 1) for 6.17 srini
2025-07-12 18:18 ` [PATCH 1/8] nvmem: apple: drop default ARCH_APPLE in Kconfig srini
2025-07-12 18:18 ` [PATCH 2/8] dt-bindings: nvmem: fixed-layout: Allow optional bit positions srini
2025-07-12 18:18 ` [PATCH 3/8] nvmem: core: Fix typos in comments and MODULE_AUTHOR strings srini
2025-07-12 18:19 ` [PATCH 4/8] dt-bindings: nvmem: convert lpc1857-eeprom.txt to yaml format srini
2025-07-12 18:19 ` srini [this message]
2025-07-12 18:19 ` [PATCH 6/8] dt-bindings: nvmem: SID: Add binding for A523 SID controller srini
2025-07-12 18:19 ` [PATCH 7/8] dt-bindings: nvmem: mediatek: efuse: split MT8186/MT8188 from base version srini
2025-07-12 18:19 ` [PATCH 8/8] dt-bindings: nvmem: convert vf610-ocotp.txt to yaml format srini
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=20250712181905.6738-6-srini@kernel.org \
--to=srini@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®