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

power: max17042: 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: Sebastian Reichel <sre@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Sebastian Reichel
e0291285 478913fd

+1 -1
+1 -1
drivers/power/max17042_battery.c
··· 658 658 } 659 659 #endif 660 660 661 - static struct regmap_config max17042_regmap_config = { 661 + static const struct regmap_config max17042_regmap_config = { 662 662 .reg_bits = 8, 663 663 .val_bits = 16, 664 664 .val_format_endian = REGMAP_ENDIAN_NATIVE,