diff options
-rw-r--r-- | drivers/regulator/max8997.c | 12 | ||||
-rw-r--r-- | include/linux/mfd/max8997-private.h | 4 |
2 files changed, 6 insertions, 10 deletions
diff --git a/drivers/regulator/max8997.c b/drivers/regulator/max8997.c index b1c1444864b3..10d5a1d9768e 100644 --- a/drivers/regulator/max8997.c +++ b/drivers/regulator/max8997.c | |||
@@ -1032,11 +1032,11 @@ static __devinit int max8997_pmic_probe(struct platform_device *pdev) | |||
1032 | 1032 | ||
1033 | /* For the safety, set max voltage before setting up */ | 1033 | /* For the safety, set max voltage before setting up */ |
1034 | for (i = 0; i < 8; i++) { | 1034 | for (i = 0; i < 8; i++) { |
1035 | max8997_update_reg(i2c, MAX8997_REG_BUCK1DVS(i + 1), | 1035 | max8997_update_reg(i2c, MAX8997_REG_BUCK1DVS1 + i, |
1036 | max_buck1, 0x3f); | 1036 | max_buck1, 0x3f); |
1037 | max8997_update_reg(i2c, MAX8997_REG_BUCK2DVS(i + 1), | 1037 | max8997_update_reg(i2c, MAX8997_REG_BUCK2DVS1 + i, |
1038 | max_buck2, 0x3f); | 1038 | max_buck2, 0x3f); |
1039 | max8997_update_reg(i2c, MAX8997_REG_BUCK5DVS(i + 1), | 1039 | max8997_update_reg(i2c, MAX8997_REG_BUCK5DVS1 + i, |
1040 | max_buck5, 0x3f); | 1040 | max_buck5, 0x3f); |
1041 | } | 1041 | } |
1042 | 1042 | ||
@@ -1113,13 +1113,13 @@ static __devinit int max8997_pmic_probe(struct platform_device *pdev) | |||
1113 | 1113 | ||
1114 | /* Initialize all the DVS related BUCK registers */ | 1114 | /* Initialize all the DVS related BUCK registers */ |
1115 | for (i = 0; i < 8; i++) { | 1115 | for (i = 0; i < 8; i++) { |
1116 | max8997_update_reg(i2c, MAX8997_REG_BUCK1DVS(i + 1), | 1116 | max8997_update_reg(i2c, MAX8997_REG_BUCK1DVS1 + i, |
1117 | max8997->buck1_vol[i], | 1117 | max8997->buck1_vol[i], |
1118 | 0x3f); | 1118 | 0x3f); |
1119 | max8997_update_reg(i2c, MAX8997_REG_BUCK2DVS(i + 1), | 1119 | max8997_update_reg(i2c, MAX8997_REG_BUCK2DVS1 + i, |
1120 | max8997->buck2_vol[i], | 1120 | max8997->buck2_vol[i], |
1121 | 0x3f); | 1121 | 0x3f); |
1122 | max8997_update_reg(i2c, MAX8997_REG_BUCK5DVS(i + 1), | 1122 | max8997_update_reg(i2c, MAX8997_REG_BUCK5DVS1 + i, |
1123 | max8997->buck5_vol[i], | 1123 | max8997->buck5_vol[i], |
1124 | 0x3f); | 1124 | 0x3f); |
1125 | } | 1125 | } |
diff --git a/include/linux/mfd/max8997-private.h b/include/linux/mfd/max8997-private.h index 69d1010e2e51..5ff2400ad46c 100644 --- a/include/linux/mfd/max8997-private.h +++ b/include/linux/mfd/max8997-private.h | |||
@@ -311,10 +311,6 @@ enum max8997_irq { | |||
311 | MAX8997_IRQ_NR, | 311 | MAX8997_IRQ_NR, |
312 | }; | 312 | }; |
313 | 313 | ||
314 | #define MAX8997_REG_BUCK1DVS(x) (MAX8997_REG_BUCK1DVS1 + (x) - 1) | ||
315 | #define MAX8997_REG_BUCK2DVS(x) (MAX8997_REG_BUCK2DVS1 + (x) - 1) | ||
316 | #define MAX8997_REG_BUCK5DVS(x) (MAX8997_REG_BUCK5DVS1 + (x) - 1) | ||
317 | |||
318 | #define MAX8997_NUM_GPIO 12 | 314 | #define MAX8997_NUM_GPIO 12 |
319 | struct max8997_dev { | 315 | struct max8997_dev { |
320 | struct device *dev; | 316 | struct device *dev; |