projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1590d4a
)
mfd: davinci_voicecodec: Constify struct regmap_config
author
Krzysztof Kozlowski
<k.kozlowski@samsung.com>
Mon, 5 Jan 2015 09:01:23 +0000
(10:01 +0100)
committer
Lee Jones
<lee.jones@linaro.org>
Thu, 22 Jan 2015 15:56:24 +0000
(15:56 +0000)
The regmap_config struct may be const because it is not modified by the
driver and regmap_init() accepts pointer to const.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/davinci_voicecodec.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/davinci_voicecodec.c
b/drivers/mfd/davinci_voicecodec.c
index
c835e85
..
9bbc642
100644
(file)
--- a/
drivers/mfd/davinci_voicecodec.c
+++ b/
drivers/mfd/davinci_voicecodec.c
@@
-33,7
+33,7
@@
#include <linux/mfd/davinci_voicecodec.h>
-static struct regmap_config davinci_vc_regmap = {
+static
const
struct regmap_config davinci_vc_regmap = {
.reg_bits = 32,
.val_bits = 32,
};