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

index 321a2656fd004493e4536701a5d9932e71ace71b..7210ae28bf816cbbb612a219b5f57fd4c94a149c 100644 (file)
@@ -35,7 +35,7 @@ static const struct mfd_cell hi6421_devs[] = {
        { .name = "hi6421-regulator", },
 };
 
-static struct regmap_config hi6421_regmap_config = {
+static const struct regmap_config hi6421_regmap_config = {
        .reg_bits = 32,
        .reg_stride = 4,
        .val_bits = 8,