diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-01-05 10:05:47 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-05 20:10:13 +0000 |
commit | 035f3324b35296171a9e6bc5744f66daa0ebcfef (patch) | |
tree | f0b40a33764ee7fb93f6d69a56da058fd9ee9945 /drivers/regulator/max8649.c | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) | |
download | op-kernel-dev-035f3324b35296171a9e6bc5744f66daa0ebcfef.zip op-kernel-dev-035f3324b35296171a9e6bc5744f66daa0ebcfef.tar.gz |
regulator: max8649: Constify struct regmap_config and regulator_ops
The regmap_config struct may be const because it is not modified by the
driver and regmap_init() accepts pointer to const. Make struct
regulator_ops const as well.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/max8649.c')
-rw-r--r-- | drivers/regulator/max8649.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/max8649.c b/drivers/regulator/max8649.c index c8bddcc..8122957 100644 --- a/drivers/regulator/max8649.c +++ b/drivers/regulator/max8649.c @@ -115,7 +115,7 @@ static unsigned int max8649_get_mode(struct regulator_dev *rdev) return REGULATOR_MODE_NORMAL; } -static struct regulator_ops max8649_dcdc_ops = { +static const struct regulator_ops max8649_dcdc_ops = { .set_voltage_sel = regulator_set_voltage_sel_regmap, .get_voltage_sel = regulator_get_voltage_sel_regmap, .list_voltage = regulator_list_voltage_linear, @@ -143,7 +143,7 @@ static struct regulator_desc dcdc_desc = { .enable_is_inverted = true, }; -static struct regmap_config max8649_regmap_config = { +static const struct regmap_config max8649_regmap_config = { .reg_bits = 8, .val_bits = 8, }; |