aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/core.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-06-02 12:08:02 -0400
committerMark Brown <broonie@linaro.org>2014-06-02 12:08:02 -0400
commit42398dbdea411eec0ec3d469df0eeb2e4089d9ab (patch)
tree951d0591f3a30f5be0a1285e0abd769bf887c1de /drivers/regulator/core.c
parentdc49f3d5eb93217b598383e9cbefe7df819ab267 (diff)
parent69c3f7239e29216fbf92a39c86b4e9cc63cd6d74 (diff)
Merge remote-tracking branch 'regulator/topic/core' into regulator-next
Diffstat (limited to 'drivers/regulator/core.c')
-rw-r--r--drivers/regulator/core.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index d70f00f8fc66..4f0198a2524a 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -1439,9 +1439,9 @@ EXPORT_SYMBOL_GPL(regulator_get);
1439 * 1439 *
1440 * Returns a struct regulator corresponding to the regulator producer, 1440 * Returns a struct regulator corresponding to the regulator producer,
1441 * or IS_ERR() condition containing errno. Other consumers will be 1441 * or IS_ERR() condition containing errno. Other consumers will be
1442 * unable to obtain this reference is held and the use count for the 1442 * unable to obtain this regulator while this reference is held and the
1443 * regulator will be initialised to reflect the current state of the 1443 * use count for the regulator will be initialised to reflect the current
1444 * regulator. 1444 * state of the regulator.
1445 * 1445 *
1446 * This is intended for use by consumers which cannot tolerate shared 1446 * This is intended for use by consumers which cannot tolerate shared
1447 * use of the regulator such as those which need to force the 1447 * use of the regulator such as those which need to force the
@@ -1465,10 +1465,7 @@ EXPORT_SYMBOL_GPL(regulator_get_exclusive);
1465 * @id: Supply name or regulator ID. 1465 * @id: Supply name or regulator ID.
1466 * 1466 *
1467 * Returns a struct regulator corresponding to the regulator producer, 1467 * Returns a struct regulator corresponding to the regulator producer,
1468 * or IS_ERR() condition containing errno. Other consumers will be 1468 * or IS_ERR() condition containing errno.
1469 * unable to obtain this reference is held and the use count for the
1470 * regulator will be initialised to reflect the current state of the
1471 * regulator.
1472 * 1469 *
1473 * This is intended for use by consumers for devices which can have 1470 * This is intended for use by consumers for devices which can have
1474 * some supplies unconnected in normal use, such as some MMC devices. 1471 * some supplies unconnected in normal use, such as some MMC devices.
@@ -1606,9 +1603,10 @@ EXPORT_SYMBOL_GPL(regulator_unregister_supply_alias);
1606 * registered any aliases that were registered will be removed 1603 * registered any aliases that were registered will be removed
1607 * before returning to the caller. 1604 * before returning to the caller.
1608 */ 1605 */
1609int regulator_bulk_register_supply_alias(struct device *dev, const char **id, 1606int regulator_bulk_register_supply_alias(struct device *dev,
1607 const char *const *id,
1610 struct device *alias_dev, 1608 struct device *alias_dev,
1611 const char **alias_id, 1609 const char *const *alias_id,
1612 int num_id) 1610 int num_id)
1613{ 1611{
1614 int i; 1612 int i;
@@ -1646,7 +1644,7 @@ EXPORT_SYMBOL_GPL(regulator_bulk_register_supply_alias);
1646 * aliases in one operation. 1644 * aliases in one operation.
1647 */ 1645 */
1648void regulator_bulk_unregister_supply_alias(struct device *dev, 1646void regulator_bulk_unregister_supply_alias(struct device *dev,
1649 const char **id, 1647 const char *const *id,
1650 int num_id) 1648 int num_id)
1651{ 1649{
1652 int i; 1650 int i;
@@ -2330,6 +2328,10 @@ static int _regulator_do_set_voltage(struct regulator_dev *rdev,
2330 regulator_list_voltage_linear) 2328 regulator_list_voltage_linear)
2331 ret = regulator_map_voltage_linear(rdev, 2329 ret = regulator_map_voltage_linear(rdev,
2332 min_uV, max_uV); 2330 min_uV, max_uV);
2331 else if (rdev->desc->ops->list_voltage ==
2332 regulator_list_voltage_linear_range)
2333 ret = regulator_map_voltage_linear_range(rdev,
2334 min_uV, max_uV);
2333 else 2335 else
2334 ret = regulator_map_voltage_iterate(rdev, 2336 ret = regulator_map_voltage_iterate(rdev,
2335 min_uV, max_uV); 2337 min_uV, max_uV);