U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] firmware: scmi: sandbox: Staticize and constify driver ops
@ 2026-05-07 22:05 Marek Vasut
  2026-05-13 11:05 ` Peng Fan
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2026-05-07 22:05 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut, Alice Guo, Peng Fan, Tom Rini, Vinh Nguyen

Set the ops structure as static const. The structure is not accessible
from outside of this driver and is not going to be modified at runtime.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
---
Cc: Alice Guo <alice.guo@nxp.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Tom Rini <trini@konsulko.com>
Cc: Vinh Nguyen <vinh.nguyen.xz@renesas.com>
Cc: u-boot@lists.denx.de
---
 drivers/firmware/scmi/sandbox-scmi_agent.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/scmi/sandbox-scmi_agent.c b/drivers/firmware/scmi/sandbox-scmi_agent.c
index 010bf99fbc6..832bfb55711 100644
--- a/drivers/firmware/scmi/sandbox-scmi_agent.c
+++ b/drivers/firmware/scmi/sandbox-scmi_agent.c
@@ -1341,7 +1341,7 @@ static const struct udevice_id sandbox_scmi_test_ids[] = {
 	{ }
 };
 
-struct scmi_agent_ops sandbox_scmi_test_ops = {
+static const struct scmi_agent_ops sandbox_scmi_test_ops = {
 	.of_get_channel = sandbox_scmi_of_get_channel,
 	.process_msg = sandbox_scmi_test_process_msg,
 };
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] firmware: scmi: sandbox: Staticize and constify driver ops
  2026-05-07 22:05 [PATCH] firmware: scmi: sandbox: Staticize and constify driver ops Marek Vasut
@ 2026-05-13 11:05 ` Peng Fan
  0 siblings, 0 replies; 2+ messages in thread
From: Peng Fan @ 2026-05-13 11:05 UTC (permalink / raw)
  To: Marek Vasut; +Cc: u-boot, Alice Guo, Peng Fan, Tom Rini, Vinh Nguyen

On Fri, May 08, 2026 at 12:05:09AM +0200, Marek Vasut wrote:
>Set the ops structure as static const. The structure is not accessible
>from outside of this driver and is not going to be modified at runtime.
>
>Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>

Reviewed-by: Peng Fan <peng.fan@nxp.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-05-13 11:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-07 22:05 [PATCH] firmware: scmi: sandbox: Staticize and constify driver ops Marek Vasut
2026-05-13 11:05 ` Peng Fan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox