]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
firmware: scmi: sandbox: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 7 May 2026 22:05:09 +0000 (00:05 +0200)
committerPeng Fan <peng.fan@nxp.com>
Fri, 15 May 2026 11:28:31 +0000 (19:28 +0800)
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>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/firmware/scmi/sandbox-scmi_agent.c

index 010bf99fbc68a62ce3f53782948606cfb245ef80..832bfb55711f38d8d90da0d8a6a64ec29c3abc60 100644 (file)
@@ -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,
 };