projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
regulator: Set n_voltages for da9052 regulators
[deliverable/linux.git]
/
drivers
/
regulator
/
da9052-regulator.c
diff --git
a/drivers/regulator/da9052-regulator.c
b/drivers/regulator/da9052-regulator.c
index 3767364452fdd890785da5276f1f9b648be89aea..319ba51fe61d030de241b89c0642f0408cb63e41 100644
(file)
--- a/
drivers/regulator/da9052-regulator.c
+++ b/
drivers/regulator/da9052-regulator.c
@@
-260,8
+260,8
@@
static int da9052_set_ldo5_6_voltage(struct regulator_dev *rdev,
* the LDO activate bit to implment the changes on the
* LDO output.
*/
* the LDO activate bit to implment the changes on the
* LDO output.
*/
- return da9052_reg_update(regulator->da9052, DA9052_SUPPLY_REG,
0,
- info->activate_bit);
+ return da9052_reg_update(regulator->da9052, DA9052_SUPPLY_REG,
+ info->activate_bit
, info->activate_bit
);
}
static int da9052_set_dcdc_voltage(struct regulator_dev *rdev,
}
static int da9052_set_dcdc_voltage(struct regulator_dev *rdev,
@@
-280,8
+280,8
@@
static int da9052_set_dcdc_voltage(struct regulator_dev *rdev,
* the DCDC activate bit to implment the changes on the
* DCDC output.
*/
* the DCDC activate bit to implment the changes on the
* DCDC output.
*/
- return da9052_reg_update(regulator->da9052, DA9052_SUPPLY_REG,
0,
- info->activate_bit);
+ return da9052_reg_update(regulator->da9052, DA9052_SUPPLY_REG,
+ info->activate_bit
, info->activate_bit
);
}
static int da9052_get_regulator_voltage_sel(struct regulator_dev *rdev)
}
static int da9052_get_regulator_voltage_sel(struct regulator_dev *rdev)
@@
-400,6
+400,7
@@
static struct regulator_ops da9052_ldo_ops = {
.ops = &da9052_ldo5_6_ops,\
.type = REGULATOR_VOLTAGE,\
.id = _id,\
.ops = &da9052_ldo5_6_ops,\
.type = REGULATOR_VOLTAGE,\
.id = _id,\
+ .n_voltages = (max - min) / step + 1, \
.owner = THIS_MODULE,\
},\
.min_uV = (min) * 1000,\
.owner = THIS_MODULE,\
},\
.min_uV = (min) * 1000,\
@@
-417,6
+418,7
@@
static struct regulator_ops da9052_ldo_ops = {
.ops = &da9052_ldo_ops,\
.type = REGULATOR_VOLTAGE,\
.id = _id,\
.ops = &da9052_ldo_ops,\
.type = REGULATOR_VOLTAGE,\
.id = _id,\
+ .n_voltages = (max - min) / step + 1, \
.owner = THIS_MODULE,\
},\
.min_uV = (min) * 1000,\
.owner = THIS_MODULE,\
},\
.min_uV = (min) * 1000,\
@@
-434,6
+436,7
@@
static struct regulator_ops da9052_ldo_ops = {
.ops = &da9052_dcdc_ops,\
.type = REGULATOR_VOLTAGE,\
.id = _id,\
.ops = &da9052_dcdc_ops,\
.type = REGULATOR_VOLTAGE,\
.id = _id,\
+ .n_voltages = (max - min) / step + 1, \
.owner = THIS_MODULE,\
},\
.min_uV = (min) * 1000,\
.owner = THIS_MODULE,\
},\
.min_uV = (min) * 1000,\
@@
-451,6
+454,7
@@
static struct regulator_ops da9052_ldo_ops = {
.ops = &da9052_buckperi_ops,\
.type = REGULATOR_VOLTAGE,\
.id = _id,\
.ops = &da9052_buckperi_ops,\
.type = REGULATOR_VOLTAGE,\
.id = _id,\
+ .n_voltages = (max - min) / step + 1, \
.owner = THIS_MODULE,\
},\
.min_uV = (min) * 1000,\
.owner = THIS_MODULE,\
},\
.min_uV = (min) * 1000,\
This page took
0.060628 seconds
and
5
git commands to generate.