aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/max1586.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/regulator/max1586.c b/drivers/regulator/max1586.c
index 92799f40c864..2c082d3ef484 100644
--- a/drivers/regulator/max1586.c
+++ b/drivers/regulator/max1586.c
@@ -40,8 +40,8 @@ struct max1586_data {
40 struct i2c_client *client; 40 struct i2c_client *client;
41 41
42 /* min/max V3 voltage */ 42 /* min/max V3 voltage */
43 int min_uV; 43 unsigned int min_uV;
44 int max_uV; 44 unsigned int max_uV;
45 45
46 struct regulator_dev *rdev[0]; 46 struct regulator_dev *rdev[0];
47}; 47};
@@ -199,8 +199,8 @@ static int max1586_pmic_probe(struct i2c_client *client,
199 ret = -EINVAL; 199 ret = -EINVAL;
200 goto out_unmap; 200 goto out_unmap;
201 } 201 }
202 max1586->min_uV = MAX1586_V3_MIN_UV * pdata->v3_gain / 1000000; 202 max1586->min_uV = MAX1586_V3_MIN_UV / 1000 * pdata->v3_gain / 1000;
203 max1586->max_uV = MAX1586_V3_MAX_UV * pdata->v3_gain / 1000000; 203 max1586->max_uV = MAX1586_V3_MAX_UV / 1000 * pdata->v3_gain / 1000;
204 204
205 rdev = max1586->rdev; 205 rdev = max1586->rdev;
206 for (i = 0; i < pdata->num_subdevs && i <= MAX1586_V6; i++) { 206 for (i = 0; i < pdata->num_subdevs && i <= MAX1586_V6; i++) {