diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-09-09 15:51:14 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-09-10 13:44:05 +0200 |
commit | 0601c1e5c4a1162c909675233645889237b003a2 (patch) | |
tree | b3f17d01c41e47acbe77be0d0dd188623ecc50fe /drivers/regulator | |
parent | regulator: da9055: Constify static data (diff) | |
download | linux-0601c1e5c4a1162c909675233645889237b003a2.tar.xz linux-0601c1e5c4a1162c909675233645889237b003a2.zip |
regulator: da9063: Constify static data
Driver does not modify static data with device variant description
(struct da9063_dev_model), so make it const for code safety.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240909-regulator-const-v1-3-8934704a5787@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/da9063-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/da9063-regulator.c b/drivers/regulator/da9063-regulator.c index 82bf321ae06f..4b5f1d6a4b3c 100644 --- a/drivers/regulator/da9063-regulator.c +++ b/drivers/regulator/da9063-regulator.c @@ -715,7 +715,7 @@ static const struct da9063_regulator_info da9063_regulator_info[] = { }; /* Link chip model with regulators info table */ -static struct da9063_dev_model regulators_models[] = { +static const struct da9063_dev_model regulators_models[] = { { .regulator_info = da9063_regulator_info, .n_regulators = ARRAY_SIZE(da9063_regulator_info), |