OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3084e5f
)
ASoc: rt5631: Constify static struct coeff_clk_div
author
Rikard Falkeborn
<rikard.falkeborn@gmail.com>
Wed, 24 Feb 2021 21:19:18 +0000
(22:19 +0100)
committer
Mark Brown
<broonie@kernel.org>
Wed, 10 Mar 2021 13:06:34 +0000
(13:06 +0000)
coeff_div is only read from, so make it const to show the intent.
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link:
https://lore.kernel.org/r/20210224211918.39109-5-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5631.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/rt5631.c
b/sound/soc/codecs/rt5631.c
index
653da3e
..
afc1305
100644
(file)
--- a/
sound/soc/codecs/rt5631.c
+++ b/
sound/soc/codecs/rt5631.c
@@
-1283,7
+1283,7
@@
static const struct pll_div codec_slave_pll_div[] = {
{3072000, 12288000, 0x0a90},
};
-static struct coeff_clk_div coeff_div[] = {
+static
const
struct coeff_clk_div coeff_div[] = {
/* sysclk is 256fs */
{2048000, 8000 * 32, 8000, 0x1000},
{2048000, 8000 * 64, 8000, 0x0000},