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

mfd: lm3533: 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
dd635161 68be231c

+1 -1
+1 -1
drivers/mfd/lm3533-core.c
··· 583 583 } 584 584 } 585 585 586 - static struct regmap_config regmap_config = { 586 + static const struct regmap_config regmap_config = { 587 587 .reg_bits = 8, 588 588 .val_bits = 8, 589 589 .max_register = LM3533_REG_MAX,