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

regulator: dummy: Make regulator_desc array const

The regulator_register() expects array of 'regulator_desc' to be const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
e1326eff f114040e

+1 -1
+1 -1
drivers/regulator/dummy.c
··· 33 33 34 34 static struct regulator_ops dummy_ops; 35 35 36 - static struct regulator_desc dummy_desc = { 36 + static const struct regulator_desc dummy_desc = { 37 37 .name = "regulator-dummy", 38 38 .id = -1, 39 39 .type = REGULATOR_VOLTAGE,