Przeglądaj źródła

regulator: pcf50633: Constify regulator_desc

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Axel Lin 13 lat temu
rodzic
commit
2ac2d7d830
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      drivers/regulator/pcf50633-regulator.c

+ 1 - 1
drivers/regulator/pcf50633-regulator.c

@@ -285,7 +285,7 @@ static struct regulator_ops pcf50633_regulator_ops = {
 	.is_enabled = pcf50633_regulator_is_enabled,
 };
 
-static struct regulator_desc regulators[] = {
+static const struct regulator_desc regulators[] = {
 	[PCF50633_REGULATOR_AUTO] =
 		PCF50633_REGULATOR("auto", PCF50633_REGULATOR_AUTO, 81),
 	[PCF50633_REGULATOR_DOWN1] =