]> git.baikalelectronics.ru Git - kernel.git/commitdiff
regulator: core: Use bool for exclusivitity flag
authorMark Brown <broonie@linaro.org>
Sun, 18 Aug 2013 17:03:22 +0000 (18:03 +0100)
committerMark Brown <broonie@linaro.org>
Sun, 18 Aug 2013 17:04:32 +0000 (18:04 +0100)
Just for neatness.

Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/core.c

index 101f7cb14be66256fbbfea90bf325572bbed1a34..44b72f6715e40f4725f4974929fa511ddd5b6538 100644 (file)
@@ -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);
@@ -1348,7 +1348,7 @@ out:
  */
 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);
 
@@ -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);