Skip to contentSkip to conversation

regulator: max1586: Constify v6_voltages_uv table

PATCH Applied Axel Lin 2 participants 2 messages Mar 30, 2013 Voltage and current regulator framework

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 regulator: max1586: Constify v6_voltages_uv table

Make v6_voltages_uv to be const unsigned int.

---
 drivers/regulator/max1586.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/max1586.c +1 -1
index 8c5a54f..dac0490 100644
@@ -56,7 +56,7 @@ struct max1586_data {
  *   set V6 to either 0V, 1.8V, 2.5V, 3V depending on (x & 0x3)
  * As regulator framework doesn't accept voltages to be 0V, we use 1uV.
  */
-static int v6_voltages_uv[] = { 1, 1800000, 2500000, 3000000 };
+static const unsigned int v6_voltages_uv[] = { 1, 1800000, 2500000, 3000000 };
 
 /*
  * V3 voltage
Signature · 1 line
1.7.10.4
Applied
#1 lore raw
Quoted 1 line · Axel Lin

Make v6_voltages_uv to be const unsigned int.

Applied, thanks.