summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2015-01-05 10:01:20 +0100
committerLee Jones <lee.jones@linaro.org>2015-01-22 16:56:07 +0100
commit8da90cc825fc0c0894393b19de5d57671c799a6b (patch)
tree764cc93fce1c60a3b0f8f56c18da39a56e8db7b6 /drivers/mfd
parentmfd: axp20x: Add support for fuel gauge cell driver (diff)
downloadlinux-8da90cc825fc0c0894393b19de5d57671c799a6b.tar.xz
linux-8da90cc825fc0c0894393b19de5d57671c799a6b.zip
mfd: 88pm860x-core: 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/88pm860x-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/88pm860x-core.c b/drivers/mfd/88pm860x-core.c
index 3a2604580164..d2a85cde68da 100644
--- a/drivers/mfd/88pm860x-core.c
+++ b/drivers/mfd/88pm860x-core.c
@@ -1111,7 +1111,7 @@ static int verify_addr(struct i2c_client *i2c)
return 0;
}
-static struct regmap_config pm860x_regmap_config = {
+static const struct regmap_config pm860x_regmap_config = {
.reg_bits = 8,
.val_bits = 8,
};