aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/lp3971.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2009-12-23 08:13:17 -0500
committerLiam Girdwood <lrg@slimlogic.co.uk>2010-03-03 09:49:22 -0500
commit6faa7e0a4bb1215fb0a0093a0d426a72599e5982 (patch)
tree243cbcf945aa72845aff1c11023ca550ea51dab6 /drivers/regulator/lp3971.c
parent1bd588fd9d2611d2573066f49477fb5be2aa13de (diff)
regulator/lp3971: Storage class should be before const qualifier
The C99 specification states in section 6.11.5: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator/lp3971.c')
-rw-r--r--drivers/regulator/lp3971.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/regulator/lp3971.c b/drivers/regulator/lp3971.c
index 4f33a0f4a179..3ea639f29e95 100644
--- a/drivers/regulator/lp3971.c
+++ b/drivers/regulator/lp3971.c
@@ -54,7 +54,7 @@ static int lp3971_set_bits(struct lp3971 *lp3971, u8 reg, u16 mask, u16 val);
54#define LP3971_BUCK2_BASE 0x29 54#define LP3971_BUCK2_BASE 0x29
55#define LP3971_BUCK3_BASE 0x32 55#define LP3971_BUCK3_BASE 0x32
56 56
57const static int buck_base_addr[] = { 57static const int buck_base_addr[] = {
58 LP3971_BUCK1_BASE, 58 LP3971_BUCK1_BASE,
59 LP3971_BUCK2_BASE, 59 LP3971_BUCK2_BASE,
60 LP3971_BUCK3_BASE, 60 LP3971_BUCK3_BASE,
@@ -63,7 +63,7 @@ const static int buck_base_addr[] = {
63#define LP3971_BUCK_TARGET_VOL1_REG(x) (buck_base_addr[x]) 63#define LP3971_BUCK_TARGET_VOL1_REG(x) (buck_base_addr[x])
64#define LP3971_BUCK_TARGET_VOL2_REG(x) (buck_base_addr[x]+1) 64#define LP3971_BUCK_TARGET_VOL2_REG(x) (buck_base_addr[x]+1)
65 65
66const static int buck_voltage_map[] = { 66static const int buck_voltage_map[] = {
67 0, 800, 850, 900, 950, 1000, 1050, 1100, 67 0, 800, 850, 900, 950, 1000, 1050, 1100,
68 1150, 1200, 1250, 1300, 1350, 1400, 1450, 1500, 68 1150, 1200, 1250, 1300, 1350, 1400, 1450, 1500,
69 1550, 1600, 1650, 1700, 1800, 1900, 2500, 2800, 69 1550, 1600, 1650, 1700, 1800, 1900, 2500, 2800,
@@ -96,17 +96,17 @@ const static int buck_voltage_map[] = {
96#define LDO_VOL_CONTR_SHIFT(x) ((x & 1) << 2) 96#define LDO_VOL_CONTR_SHIFT(x) ((x & 1) << 2)
97#define LDO_VOL_CONTR_MASK 0x0f 97#define LDO_VOL_CONTR_MASK 0x0f
98 98
99const static int ldo45_voltage_map[] = { 99static const int ldo45_voltage_map[] = {
100 1000, 1050, 1100, 1150, 1200, 1250, 1300, 1350, 100 1000, 1050, 1100, 1150, 1200, 1250, 1300, 1350,
101 1400, 1500, 1800, 1900, 2500, 2800, 3000, 3300, 101 1400, 1500, 1800, 1900, 2500, 2800, 3000, 3300,
102}; 102};
103 103
104const static int ldo123_voltage_map[] = { 104static const int ldo123_voltage_map[] = {
105 1800, 1900, 2000, 2100, 2200, 2300, 2400, 2500, 105 1800, 1900, 2000, 2100, 2200, 2300, 2400, 2500,
106 2600, 2700, 2800, 2900, 3000, 3100, 3200, 3300, 106 2600, 2700, 2800, 2900, 3000, 3100, 3200, 3300,
107}; 107};
108 108
109const static int *ldo_voltage_map[] = { 109static const int *ldo_voltage_map[] = {
110 ldo123_voltage_map, /* LDO1 */ 110 ldo123_voltage_map, /* LDO1 */
111 ldo123_voltage_map, /* LDO2 */ 111 ldo123_voltage_map, /* LDO2 */
112 ldo123_voltage_map, /* LDO3 */ 112 ldo123_voltage_map, /* LDO3 */