summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2015-01-05 10:01:21 +0100
committerLee Jones <lee.jones@linaro.org>2015-01-22 15:56:10 +0000
commit7f9e3feb7c0f71f5aa797f455abf0d503a520139 (patch)
treebc8759ea5955913f94643f2092cacb2694c6f7c7 /drivers/mfd
parent8da90cc825fc0c0894393b19de5d57671c799a6b (diff)
downloadop-kernel-dev-7f9e3feb7c0f71f5aa797f455abf0d503a520139.zip
op-kernel-dev-7f9e3feb7c0f71f5aa797f455abf0d503a520139.tar.gz
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 <k.kozlowski@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/hi6421-pmic-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/hi6421-pmic-core.c b/drivers/mfd/hi6421-pmic-core.c
index 321a265..7210ae2 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,
OpenPOWER on IntegriCloud