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

mfd: smsc-ece1099: 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
486212f5 b8d12eac

+1 -1
+1 -1
drivers/mfd/smsc-ece1099.c
··· 24 24 #include <linux/mfd/smsc.h> 25 25 #include <linux/of_platform.h> 26 26 27 - static struct regmap_config smsc_regmap_config = { 27 + static const struct regmap_config smsc_regmap_config = { 28 28 .reg_bits = 8, 29 29 .val_bits = 8, 30 30 .max_register = SMSC_VEN_ID_H,