diff options
author | Mark Brown <broonie@linaro.org> | 2013-08-18 13:03:22 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-18 13:04:32 -0400 |
commit | 84fcf447a99c8cc9cc906b42e590d1a3a7ed56ab (patch) | |
tree | db8a6217af3f9baf6033ee41fbfc9e73b0c84fd5 /drivers/regulator | |
parent | 587cea27e4feee7365b22935b3e19e1e8906e9cb (diff) |
regulator: core: Use bool for exclusivitity flag
Just for neatness.
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 101f7cb14be6..44b72f6715e4 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c | |||
@@ -1242,7 +1242,7 @@ static struct regulator_dev *regulator_dev_lookup(struct device *dev, | |||
1242 | 1242 | ||
1243 | /* Internal regulator request function */ | 1243 | /* Internal regulator request function */ |
1244 | static struct regulator *_regulator_get(struct device *dev, const char *id, | 1244 | static struct regulator *_regulator_get(struct device *dev, const char *id, |
1245 | int exclusive) | 1245 | bool exclusive) |
1246 | { | 1246 | { |
1247 | struct regulator_dev *rdev; | 1247 | struct regulator_dev *rdev; |
1248 | struct regulator *regulator = ERR_PTR(-EPROBE_DEFER); | 1248 | struct regulator *regulator = ERR_PTR(-EPROBE_DEFER); |
@@ -1348,7 +1348,7 @@ out: | |||
1348 | */ | 1348 | */ |
1349 | struct regulator *regulator_get(struct device *dev, const char *id) | 1349 | struct regulator *regulator_get(struct device *dev, const char *id) |
1350 | { | 1350 | { |
1351 | return _regulator_get(dev, id, 0); | 1351 | return _regulator_get(dev, id, false); |
1352 | } | 1352 | } |
1353 | EXPORT_SYMBOL_GPL(regulator_get); | 1353 | EXPORT_SYMBOL_GPL(regulator_get); |
1354 | 1354 | ||
@@ -1409,7 +1409,7 @@ EXPORT_SYMBOL_GPL(devm_regulator_get); | |||
1409 | */ | 1409 | */ |
1410 | struct regulator *regulator_get_exclusive(struct device *dev, const char *id) | 1410 | struct regulator *regulator_get_exclusive(struct device *dev, const char *id) |
1411 | { | 1411 | { |
1412 | return _regulator_get(dev, id, 1); | 1412 | return _regulator_get(dev, id, true); |
1413 | } | 1413 | } |
1414 | EXPORT_SYMBOL_GPL(regulator_get_exclusive); | 1414 | EXPORT_SYMBOL_GPL(regulator_get_exclusive); |
1415 | 1415 | ||