Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: max77686: Constify struct regmap_config

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>

authored by

Krzysztof Kozlowski and committed by
Lee Jones
68be231c 172cb301

+3 -3
+3 -3
drivers/mfd/max77686.c
··· 111 111 max77802_rtc_is_volatile_reg(dev, reg)); 112 112 } 113 113 114 - static struct regmap_config max77686_regmap_config = { 114 + static const struct regmap_config max77686_regmap_config = { 115 115 .reg_bits = 8, 116 116 .val_bits = 8, 117 117 }; 118 118 119 - static struct regmap_config max77686_rtc_regmap_config = { 119 + static const struct regmap_config max77686_rtc_regmap_config = { 120 120 .reg_bits = 8, 121 121 .val_bits = 8, 122 122 }; 123 123 124 - static struct regmap_config max77802_regmap_config = { 124 + static const struct regmap_config max77802_regmap_config = { 125 125 .reg_bits = 8, 126 126 .val_bits = 8, 127 127 .writeable_reg = max77802_is_accessible_reg,