On 5/8/26 14:22, Marek Vasut wrote:
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: Michal Simek <[email protected]>
Cc: Naman Trivedi <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Senthil Nathan Thangaraj <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Venkatesh Yadav Abbarapu <[email protected]>
Cc: [email protected]
---
  drivers/power/domain/zynqmp-power-domain.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/domain/zynqmp-power-domain.c 
b/drivers/power/domain/zynqmp-power-domain.c
index a54de5c1439..0acfc54e787 100644
--- a/drivers/power/domain/zynqmp-power-domain.c
+++ b/drivers/power/domain/zynqmp-power-domain.c
@@ -57,7 +57,7 @@ static int zynqmp_power_domain_off(struct power_domain 
*power_domain)
        return 0;
  }
-struct power_domain_ops zynqmp_power_domain_ops = {
+static const struct power_domain_ops zynqmp_power_domain_ops = {
        .request = zynqmp_power_domain_request,
        .rfree = zynqmp_power_domain_free,
        .on = zynqmp_power_domain_on,

Reviewed-by: Michal Simek <[email protected]>

Thanks,
Michal

Reply via email to