Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240909-regulator-const-v1-10-8934704a5787@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
96d7ee7c 65397670

+1 -1
+1 -1
drivers/regulator/max77826-regulator.c
··· 186 186 .set_voltage_time_sel = max77826_set_voltage_time_sel, 187 187 }; 188 188 189 - static struct regulator_desc max77826_regulators_desc[] = { 189 + static const struct regulator_desc max77826_regulators_desc[] = { 190 190 MAX77826_LDO(1, NMOS), 191 191 MAX77826_LDO(2, NMOS), 192 192 MAX77826_LDO(3, NMOS),