Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1619056 > unrolled thread
| Started by | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| First post | 2017-04-07 21:30 +0200 |
| Last post | 2017-04-09 04:20 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] clk: zte: Mark pll config tables as const Stephen Boyd <sboyd@codeaurora.org> - 2017-04-07 21:30 +0200
Re: [PATCH] clk: zte: Mark pll config tables as const Shawn Guo <shawn.guo@linaro.org> - 2017-04-09 04:20 +0200
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Date | 2017-04-07 21:30 +0200 |
| Subject | [PATCH] clk: zte: Mark pll config tables as const |
| Message-ID | <ttHK1-3kh-19@gated-at.bofh.it> |
These should be const.
Cc: Shawn Guo <shawn.guo@linaro.org>
Cc: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
drivers/clk/zte/clk-zx296718.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/zte/clk-zx296718.c b/drivers/clk/zte/clk-zx296718.c
index 8db0119bc6f7..a10962988ba8 100644
--- a/drivers/clk/zte/clk-zx296718.c
+++ b/drivers/clk/zte/clk-zx296718.c
@@ -94,14 +94,14 @@
static DEFINE_SPINLOCK(clk_lock);
-static struct zx_pll_config pll_cpu_table[] = {
+static const struct zx_pll_config pll_cpu_table[] = {
PLL_RATE(1312000000, 0x00103621, 0x04aaaaaa),
PLL_RATE(1407000000, 0x00103a21, 0x04aaaaaa),
PLL_RATE(1503000000, 0x00103e21, 0x04aaaaaa),
PLL_RATE(1600000000, 0x00104221, 0x04aaaaaa),
};
-static struct zx_pll_config pll_vga_table[] = {
+static const struct zx_pll_config pll_vga_table[] = {
PLL_RATE(36000000, 0x00102464, 0x04000000), /* 800x600@56 */
PLL_RATE(40000000, 0x00102864, 0x04000000), /* 800x600@60 */
PLL_RATE(49500000, 0x00103164, 0x04800000), /* 800x600@75 */
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
[toc] | [next] | [standalone]
| From | Shawn Guo <shawn.guo@linaro.org> |
|---|---|
| Date | 2017-04-09 04:20 +0200 |
| Message-ID | <tuaCl-5dA-3@gated-at.bofh.it> |
| In reply to | #1619056 |
On Sat, Apr 8, 2017 at 3:23 AM, Stephen Boyd <sboyd@codeaurora.org> wrote: > > These should be const. > > Cc: Shawn Guo <shawn.guo@linaro.org> > Cc: Jun Nie <jun.nie@linaro.org> > Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Acked-by: Shawn Guo <shawn.guo@linaro.org>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web