mfd: lm3533: Constify struct regmap_config
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 5 Jan 2015 09:01:24 +0000 (10:01 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 22 Jan 2015 15:56:17 +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/lm3533-core.c

index 8c29f7b27324f4980e1b73f98b7186c10107120a..d42fbb667d8cf41db556ee3eb0d6f00e13ecc6bf 100644 (file)
@@ -583,7 +583,7 @@ static bool lm3533_precious_register(struct device *dev, unsigned int reg)
        }
 }
 
-static struct regmap_config regmap_config = {
+static const struct regmap_config regmap_config = {
        .reg_bits       = 8,
        .val_bits       = 8,
        .max_register   = LM3533_REG_MAX,