Skip to content

Commit

Permalink
regulator: core: Use bool for exclusivitity flag
Browse files Browse the repository at this point in the history
Just for neatness.

Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Mark Brown committed Aug 18, 2013
1 parent 587cea2 commit 84fcf44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ static struct regulator_dev *regulator_dev_lookup(struct device *dev,

/* Internal regulator request function */
static struct regulator *_regulator_get(struct device *dev, const char *id,
int exclusive)
bool exclusive)
{
struct regulator_dev *rdev;
struct regulator *regulator = ERR_PTR(-EPROBE_DEFER);
Expand Down Expand Up @@ -1348,7 +1348,7 @@ static struct regulator *_regulator_get(struct device *dev, const char *id,
*/
struct regulator *regulator_get(struct device *dev, const char *id)
{
return _regulator_get(dev, id, 0);
return _regulator_get(dev, id, false);
}
EXPORT_SYMBOL_GPL(regulator_get);

Expand Down Expand Up @@ -1409,7 +1409,7 @@ EXPORT_SYMBOL_GPL(devm_regulator_get);
*/
struct regulator *regulator_get_exclusive(struct device *dev, const char *id)
{
return _regulator_get(dev, id, 1);
return _regulator_get(dev, id, true);
}
EXPORT_SYMBOL_GPL(regulator_get_exclusive);

Expand Down

0 comments on commit 84fcf44

Please sign in to comment.