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

mfd: intel_soc_pmic: 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
172cb301 7f9e3feb

+2 -2
+1 -1
drivers/mfd/intel_soc_pmic_core.h
··· 23 23 unsigned long irq_flags; 24 24 struct mfd_cell *cell_dev; 25 25 int n_cell_devs; 26 - struct regmap_config *regmap_config; 26 + const struct regmap_config *regmap_config; 27 27 struct regmap_irq_chip *irq_chip; 28 28 }; 29 29
+1 -1
drivers/mfd/intel_soc_pmic_crc.c
··· 111 111 }, 112 112 }; 113 113 114 - static struct regmap_config crystal_cove_regmap_config = { 114 + static const struct regmap_config crystal_cove_regmap_config = { 115 115 .reg_bits = 8, 116 116 .val_bits = 8, 117 117