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

index 2d1ba1855a5bfb12158a7ae65168dc73f7b3300e..24dd540897d257d262e221ed0606403b46af0c25 100644 (file)
@@ -392,7 +392,7 @@ static const struct udevice_id mtk_power_domain_ids[] = {
        { /* sentinel */ }
 };
 
-struct power_domain_ops mtk_power_domain_ops = {
+static const struct power_domain_ops mtk_power_domain_ops = {
        .off = scpsys_power_off,
        .on = scpsys_power_on,
        .request = scpsys_power_request,