]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
power: domain: imx8mp-mediamix: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 8 May 2026 12:22:06 +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: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/power/domain/imx8mp-mediamix.c

index 504c22f7d3631363d76eb21e43afd854258d4ea5..66ea5d8e60cea0e91e82f515504e5b7dca1e704e 100644 (file)
@@ -194,7 +194,7 @@ static const struct udevice_id imx8mp_mediamix_ids[] = {
        { }
 };
 
-struct power_domain_ops imx8mp_mediamix_ops = {
+static const struct power_domain_ops imx8mp_mediamix_ops = {
        .on = imx8mp_mediamix_on,
        .off = imx8mp_mediamix_off,
        .of_xlate = imx8mp_mediamix_of_xlate,