summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/max1586.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-03-30 06:57:29 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-30 14:53:21 +0100
commitd67c42cc178fc3b8c92bb3072a70a6e418951b3f (patch)
tree9868fcb6621eb11f3ce40ea988edb0bfb58b7577 /drivers/regulator/max1586.c
parentLinux 3.9-rc4 (diff)
downloadlinux-d67c42cc178fc3b8c92bb3072a70a6e418951b3f.tar.xz
linux-d67c42cc178fc3b8c92bb3072a70a6e418951b3f.zip
regulator: max1586: Constify v6_voltages_uv table
Make v6_voltages_uv to be const unsigned int. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/max1586.c')
-rw-r--r--drivers/regulator/max1586.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max1586.c b/drivers/regulator/max1586.c
index 8c5a54f541b5..dac049003a2a 100644
--- a/drivers/regulator/max1586.c
+++ b/drivers/regulator/max1586.c
@@ -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