]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mfd: davinci_voicecodec: Constify struct regmap_config
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 5 Jan 2015 09:01:23 +0000 (10:01 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 22 Jan 2015 15:56:24 +0000 (15:56 +0000)
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>
drivers/mfd/davinci_voicecodec.c

index c835e85539b2ae568cf92549126086f864f29efd..9bbc642a7b9db5bc53eb383db667abe399b2959f 100644 (file)
@@ -33,7 +33,7 @@
 
 #include <linux/mfd/davinci_voicecodec.h>
 
-static struct regmap_config davinci_vc_regmap = {
+static const struct regmap_config davinci_vc_regmap = {
        .reg_bits = 32,
        .val_bits = 32,
 };