lkml.org 
[lkml]   [2022]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] m68k: coldfire:Add const to clk_ops
Date
Struct clk_ops should normally be const.

Signed-off-by: Xiang wangx <wangxiang@cdjrlc.com>
---
arch/m68k/coldfire/clk.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/m68k/coldfire/clk.c b/arch/m68k/coldfire/clk.c
index d03b6c4aa86b..a0cd4c79f0ee 100644
--- a/arch/m68k/coldfire/clk.c
+++ b/arch/m68k/coldfire/clk.c
@@ -50,7 +50,7 @@ static void __clk_disable0(struct clk *clk)
__raw_writeb(clk->slot, MCFPM_PPMSR0);
}

-struct clk_ops clk_ops0 = {
+struct const clk_ops clk_ops0 = {
.enable = __clk_enable0,
.disable = __clk_disable0,
};
@@ -66,7 +66,7 @@ static void __clk_disable1(struct clk *clk)
__raw_writeb(clk->slot, MCFPM_PPMSR1);
}

-struct clk_ops clk_ops1 = {
+struct const clk_ops clk_ops1 = {
.enable = __clk_enable1,
.disable = __clk_disable1,
};
--
2.36.1
\
 
 \ /
  Last update: 2022-05-30 04:54    [W:1.138 / U:1.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site