]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
power: domain: sandbox: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 8 May 2026 12:22:11 +0000 (14:22 +0200)
committerPeng Fan <peng.fan@nxp.com>
Fri, 15 May 2026 03:47:23 +0000 (11:47 +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: Simon Glass <sjg@chromium.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/power/domain/sandbox-power-domain.c

index a80316576384b27dc8159e81b5c79fc355af2860..a30826a3b4d6563d2a7830720e8d4d94786a4227 100644 (file)
@@ -78,7 +78,7 @@ static const struct udevice_id sandbox_power_domain_ids[] = {
        { }
 };
 
-struct power_domain_ops sandbox_power_domain_ops = {
+static const struct power_domain_ops sandbox_power_domain_ops = {
        .request = sandbox_power_domain_request,
        .rfree = sandbox_power_domain_free,
        .on = sandbox_power_domain_on,