From: Xiang wangx <wangxiang@cdjrlc.com>
To: gerg@linux-m68k.org
Cc: geert@linux-m68k.org, linux-m68k@lists.linux-m68k.org,
linux-kernel@vger.kernel.org, Xiang wangx <wangxiang@cdjrlc.com>
Subject: [PATCH] m68k: coldfire:Add const to clk_ops
Date: Mon, 30 May 2022 10:53:12 +0800 [thread overview]
Message-ID: <20220530025312.55057-1-wangxiang@cdjrlc.com> (raw)
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
next reply other threads:[~2022-05-30 2:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-30 2:53 Xiang wangx [this message]
2022-05-30 7:11 ` Geert Uytterhoeven
2022-05-31 13:13 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220530025312.55057-1-wangxiang@cdjrlc.com \
--to=wangxiang@cdjrlc.com \
--cc=geert@linux-m68k.org \
--cc=gerg@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®