From: Marek Vasut Date: Thu, 7 May 2026 22:05:09 +0000 (+0200) Subject: firmware: scmi: sandbox: Staticize and constify driver ops X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8bd84cca34ed5836b6110df4355fb920dae65a1d;p=thirdparty%2Fu-boot.git firmware: scmi: sandbox: Staticize and constify driver ops 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 Reviewed-by: Peng Fan Signed-off-by: Peng Fan --- 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, };