projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
478913f
)
power: max17042: Constify struct regmap_config
author
Krzysztof Kozlowski
<k.kozlowski@samsung.com>
Mon, 5 Jan 2015 08:50:17 +0000
(09:50 +0100)
committer
Sebastian Reichel
<sre@kernel.org>
Tue, 20 Jan 2015 12:58:32 +0000
(13:58 +0100)
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: Sebastian Reichel <sre@kernel.org>
drivers/power/max17042_battery.c
patch
|
blob
|
history
diff --git
a/drivers/power/max17042_battery.c
b/drivers/power/max17042_battery.c
index 66da691c41cf5808c55d4714e4e7de6e409860d8..1da6c5fbdff5b5165866576e0bfcc5fd66a53867 100644
(file)
--- a/
drivers/power/max17042_battery.c
+++ b/
drivers/power/max17042_battery.c
@@
-658,7
+658,7
@@
max17042_get_pdata(struct device *dev)
}
#endif
-static struct regmap_config max17042_regmap_config = {
+static
const
struct regmap_config max17042_regmap_config = {
.reg_bits = 8,
.val_bits = 16,
.val_format_endian = REGMAP_ENDIAN_NATIVE,