projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
265fc09
)
rtc: pcf8563: Constify clkout_rates
author
Nobuhiro Iwamatsu
<iwamatsu@nigauri.org>
Fri, 8 Nov 2019 00:24:49 +0000
(09:24 +0900)
committer
Alexandre Belloni
<alexandre.belloni@bootlin.com>
Fri, 15 Nov 2019 10:58:16 +0000
(11:58 +0100)
The lates of clockout should be marked const. Make that so.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Link:
https://lore.kernel.org/r/20191108002449.15097-1-iwamatsu@nigauri.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pcf8563.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-pcf8563.c
b/drivers/rtc/rtc-pcf8563.c
index
24baa47
..
3c322f3
100644
(file)
--- 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,