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

index 663f8a3..2d64430 100644 (file)
@@ -222,7 +222,7 @@ static struct regmap_bus retu_bus = {
        .val_format_endian_default = REGMAP_ENDIAN_NATIVE,
 };
 
-static struct regmap_config retu_config = {
+static const struct regmap_config retu_config = {
        .reg_bits = 8,
        .val_bits = 16,
 };