Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84fcf447 authored by Mark Brown's avatar Mark Brown
Browse files

regulator: core: Use bool for exclusivitity flag



Just for neatness.

Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 587cea27
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -1242,7 +1242,7 @@ static struct regulator_dev *regulator_dev_lookup(struct device *dev,


/* Internal regulator request function */
/* Internal regulator request function */
static struct regulator *_regulator_get(struct device *dev, const char *id,
static struct regulator *_regulator_get(struct device *dev, const char *id,
					int exclusive)
					bool exclusive)
{
{
	struct regulator_dev *rdev;
	struct regulator_dev *rdev;
	struct regulator *regulator = ERR_PTR(-EPROBE_DEFER);
	struct regulator *regulator = ERR_PTR(-EPROBE_DEFER);
@@ -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)
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);
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)
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);
EXPORT_SYMBOL_GPL(regulator_get_exclusive);