From: Krzysztof Kozlowski Date: Mon, 5 Jan 2015 09:01:21 +0000 (+0100) Subject: mfd: hi6421-pmic: Constify struct regmap_config X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7f9e3feb7c0f71f5aa797f455abf0d503a520139;p=deliverable%2Flinux.git mfd: hi6421-pmic: 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 Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/hi6421-pmic-core.c b/drivers/mfd/hi6421-pmic-core.c index 321a2656fd00..7210ae28bf81 100644 --- a/drivers/mfd/hi6421-pmic-core.c +++ b/drivers/mfd/hi6421-pmic-core.c @@ -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,