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

mfd: davinci_voicecodec: 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
b8d12eac 1590d4a1

+1 -1
+1 -1
drivers/mfd/davinci_voicecodec.c
··· 33 33 34 34 #include <linux/mfd/davinci_voicecodec.h> 35 35 36 - static struct regmap_config davinci_vc_regmap = { 36 + static const struct regmap_config davinci_vc_regmap = { 37 37 .reg_bits = 32, 38 38 .val_bits = 32, 39 39 };