All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] m68k: coldfire:Add const to clk_ops
@ 2022-05-30  2:53 Xiang wangx
  2022-05-30  7:11 ` Geert Uytterhoeven
  2022-05-31 13:13 ` kernel test robot
  0 siblings, 2 replies; 3+ messages in thread
From: Xiang wangx @ 2022-05-30  2:53 UTC (permalink / raw)
  To: gerg; +Cc: geert, linux-m68k, linux-kernel, Xiang wangx

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-31 13:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-30  2:53 [PATCH] m68k: coldfire:Add const to clk_ops Xiang wangx
2022-05-30  7:11 ` Geert Uytterhoeven
2022-05-31 13:13 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.