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 <[email protected]>
---
Cc: Jaehoon Chung <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
---
 drivers/power/domain/apple-pmgr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/power/domain/apple-pmgr.c 
b/drivers/power/domain/apple-pmgr.c
index bf9940621ee..37fac815242 100644
--- a/drivers/power/domain/apple-pmgr.c
+++ b/drivers/power/domain/apple-pmgr.c
@@ -67,7 +67,7 @@ static int apple_reset_deassert(struct reset_ctl *reset_ctl)
        return 0;
 }
 
-struct reset_ops apple_reset_ops = {
+static const struct reset_ops apple_reset_ops = {
        .of_xlate = apple_reset_of_xlate,
        .rst_assert = apple_reset_assert,
        .rst_deassert = apple_reset_deassert,
@@ -138,7 +138,7 @@ static int apple_pmgr_probe(struct udevice *dev)
        return 0;
 }
 
-struct power_domain_ops apple_pmgr_ops = {
+static const struct power_domain_ops apple_pmgr_ops = {
        .on = apple_pmgr_on,
        .of_xlate = apple_pmgr_of_xlate,
 };
-- 
2.53.0

Reply via email to