]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
power: domain: imx8m: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 8 May 2026 12:22:05 +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/imx8m-power-domain.c

index 1c731b897cc4c99c30d8aeee95a597e93601c227..5fdb95fb6a714e3d1930fc36c2c6caedd9deab2f 100644 (file)
@@ -558,7 +558,7 @@ static const struct udevice_id imx8m_power_domain_ids[] = {
        { }
 };
 
-struct power_domain_ops imx8m_power_domain_ops = {
+static const struct power_domain_ops imx8m_power_domain_ops = {
        .on = imx8m_power_domain_on,
        .off = imx8m_power_domain_off,
        .of_xlate = imx8m_power_domain_of_xlate,