* [PATCH] rtc: pcf8563: Constify clkout_rates
@ 2019-11-08 0:24 Nobuhiro Iwamatsu
2019-11-15 11:01 ` Alexandre Belloni
0 siblings, 1 reply; 2+ messages in thread
From: Nobuhiro Iwamatsu @ 2019-11-08 0:24 UTC (permalink / raw)
To: a.zummo, alexandre.belloni; +Cc: linux-rtc, Nobuhiro Iwamatsu
The lates of clockout should be marked const. Make that so.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
---
drivers/rtc/rtc-pcf8563.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-pcf8563.c b/drivers/rtc/rtc-pcf8563.c
index 24baa4767b11..3c322f3079b0 100644
--- a/drivers/rtc/rtc-pcf8563.c
+++ b/drivers/rtc/rtc-pcf8563.c
@@ -390,7 +390,7 @@ static int pcf8563_irq_enable(struct device *dev, unsigned int enabled)
#define clkout_hw_to_pcf8563(_hw) container_of(_hw, struct pcf8563, clkout_hw)
-static int clkout_rates[] = {
+static const int clkout_rates[] = {
32768,
1024,
32,
--
2.24.0.rc1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] rtc: pcf8563: Constify clkout_rates
2019-11-08 0:24 [PATCH] rtc: pcf8563: Constify clkout_rates Nobuhiro Iwamatsu
@ 2019-11-15 11:01 ` Alexandre Belloni
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2019-11-15 11:01 UTC (permalink / raw)
To: Nobuhiro Iwamatsu; +Cc: a.zummo, linux-rtc
On 08/11/2019 09:24:49+0900, Nobuhiro Iwamatsu wrote:
> The lates of clockout should be marked const. Make that so.
>
> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
> ---
> drivers/rtc/rtc-pcf8563.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Applied, thanks.
--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-11-15 11:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-08 0:24 [PATCH] rtc: pcf8563: Constify clkout_rates Nobuhiro Iwamatsu
2019-11-15 11:01 ` Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).