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>
This commit is contained in:
parent
dfa9e708c6
commit
0601c1e5c4
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user