aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2024-09-09 15:51:21 +0200
committerMark Brown <[email protected]>2024-09-10 12:44:11 +0100
commit96d7ee7cb01203ae0b6078631738754424d89cf8 (patch)
tree5c64baba32d6c84c44b580fb0b2e8e268a321cf2
parent653976707d03f9c8e07f1c7733f27c89a1d5eb1c (diff)
regulator: max77826: Constify static data
Driver does not modify static data with regulator description (struct regulator_desc), so make it const for code safety. Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--drivers/regulator/max77826-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max77826-regulator.c b/drivers/regulator/max77826-regulator.c
index 4b656a694108..310bc8ee7af8 100644
--- a/drivers/regulator/max77826-regulator.c
+++ b/drivers/regulator/max77826-regulator.c
@@ -186,7 +186,7 @@ static const struct regulator_ops max77826_buck_ops = {
.set_voltage_time_sel = max77826_set_voltage_time_sel,
};
-static struct regulator_desc max77826_regulators_desc[] = {
+static const struct regulator_desc max77826_regulators_desc[] = {
MAX77826_LDO(1, NMOS),
MAX77826_LDO(2, NMOS),
MAX77826_LDO(3, NMOS),