projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68be231
)
mfd: lm3533: Constify struct regmap_config
author
Krzysztof Kozlowski
<k.kozlowski@samsung.com>
Mon, 5 Jan 2015 09:01:24 +0000
(10:01 +0100)
committer
Lee Jones
<lee.jones@linaro.org>
Thu, 22 Jan 2015 15:56:17 +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/lm3533-core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/lm3533-core.c
b/drivers/mfd/lm3533-core.c
index 8c29f7b27324f4980e1b73f98b7186c10107120a..d42fbb667d8cf41db556ee3eb0d6f00e13ecc6bf 100644
(file)
--- a/
drivers/mfd/lm3533-core.c
+++ b/
drivers/mfd/lm3533-core.c
@@
-583,7
+583,7
@@
static bool lm3533_precious_register(struct device *dev, unsigned int reg)
}
}
-static struct regmap_config regmap_config = {
+static
const
struct regmap_config regmap_config = {
.reg_bits = 8,
.val_bits = 8,
.max_register = LM3533_REG_MAX,