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

index 36b5a933748073e5aa774298a2fd07757e5a779c..5b449f4c29d546e151c077e420bd22df2c7bf9e8 100644 (file)
@@ -57,7 +57,7 @@ static const struct udevice_id bcm6328_power_domain_ids[] = {
        { /* sentinel */ }
 };
 
-struct power_domain_ops bcm6328_power_domain_ops = {
+static const struct power_domain_ops bcm6328_power_domain_ops = {
        .off = bcm6328_power_domain_off,
        .on = bcm6328_power_domain_on,
        .request = bcm6328_power_domain_request,