diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-01-05 04:04:19 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-05 15:09:40 -0500 |
commit | 121b567d8f4dce55c8095a842766fc1e5523be94 (patch) | |
tree | ffbf2c1f6851348338439dee7a12b4f84cb58746 /drivers/regulator | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) |
regulator: fan53555: Constify struct regmap_config and slew_rates array
The regmap_config struct may be const because it is not modified by the
driver and regmap_init() accepts pointer to const. Make const also
slew_rates array.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/fan53555.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index 6c43ab2d5121..3c25db89a021 100644 --- a/drivers/regulator/fan53555.c +++ b/drivers/regulator/fan53555.c | |||
@@ -147,7 +147,7 @@ static unsigned int fan53555_get_mode(struct regulator_dev *rdev) | |||
147 | return REGULATOR_MODE_NORMAL; | 147 | return REGULATOR_MODE_NORMAL; |
148 | } | 148 | } |
149 | 149 | ||
150 | static int slew_rates[] = { | 150 | static const int slew_rates[] = { |
151 | 64000, | 151 | 64000, |
152 | 32000, | 152 | 32000, |
153 | 16000, | 153 | 16000, |
@@ -296,7 +296,7 @@ static int fan53555_regulator_register(struct fan53555_device_info *di, | |||
296 | return PTR_ERR_OR_ZERO(di->rdev); | 296 | return PTR_ERR_OR_ZERO(di->rdev); |
297 | } | 297 | } |
298 | 298 | ||
299 | static struct regmap_config fan53555_regmap_config = { | 299 | static const struct regmap_config fan53555_regmap_config = { |
300 | .reg_bits = 8, | 300 | .reg_bits = 8, |
301 | .val_bits = 8, | 301 | .val_bits = 8, |
302 | }; | 302 | }; |