git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd63516
)
mfd: retu: Constify struct regmap_config
author
Krzysztof Kozlowski
<k.kozlowski@samsung.com>
Mon, 5 Jan 2015 09:01:28 +0000
(10:01 +0100)
committer
Lee Jones
<lee.jones@linaro.org>
Thu, 22 Jan 2015 15:56:19 +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/retu-mfd.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/retu-mfd.c
b/drivers/mfd/retu-mfd.c
index
663f8a3
..
2d64430
100644
(file)
--- a/
drivers/mfd/retu-mfd.c
+++ b/
drivers/mfd/retu-mfd.c
@@
-222,7
+222,7
@@
static struct regmap_bus retu_bus = {
.val_format_endian_default = REGMAP_ENDIAN_NATIVE,
};
-static struct regmap_config retu_config = {
+static
const
struct regmap_config retu_config = {
.reg_bits = 8,
.val_bits = 16,
};