diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-01-05 09:01:21 (GMT) |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-01-22 15:56:10 (GMT) |
commit | 7f9e3feb7c0f71f5aa797f455abf0d503a520139 (patch) | |
tree | bc8759ea5955913f94643f2092cacb2694c6f7c7 /drivers/mfd/hi6421-pmic-core.c | |
parent | 8da90cc825fc0c0894393b19de5d57671c799a6b (diff) | |
download | linux-7f9e3feb7c0f71f5aa797f455abf0d503a520139.tar.xz |
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/hi6421-pmic-core.c')
-rw-r--r-- | drivers/mfd/hi6421-pmic-core.c | 2 |
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, |