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: Chunfeng Yun <[email protected]>
Cc: David Lechner <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Igor Belwon <[email protected]>
Cc: Julien Stephan <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: [email protected]
---
 drivers/reset/reset-mediatek.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/reset/reset-mediatek.c b/drivers/reset/reset-mediatek.c
index 4b3afab92ea..66bcf7c29b6 100644
--- a/drivers/reset/reset-mediatek.c
+++ b/drivers/reset/reset-mediatek.c
@@ -47,7 +47,7 @@ static int mediatek_reset_deassert(struct reset_ctl 
*reset_ctl)
                priv->regofs + ((id / 32) << 2), BIT(id % 32), 0);
 }
 
-struct reset_ops mediatek_reset_ops = {
+static const struct reset_ops mediatek_reset_ops = {
        .rst_assert = mediatek_reset_assert,
        .rst_deassert = mediatek_reset_deassert,
 };
-- 
2.53.0

Reply via email to