From: Keerthy <j-keerthy@ti.com>
Date: Tue, 13 Jun 2017 04:23:50 +0000 (+0530)
Subject: power: regulator: pfuze100: get_enable should return integer
X-Git-Tag: v2025.01-rc5-pxa1908~6360
X-Git-Url: http://git.dujemihanovic.xyz/posts?a=commitdiff_plain;h=117daa82204f502d245e4d4f4be3b8cd712b244f;p=u-boot.git

power: regulator: pfuze100: get_enable should return integer

get_enable should be able to return error values. Hence change
the return type to integer.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---

diff --git a/drivers/power/regulator/pfuze100.c b/drivers/power/regulator/pfuze100.c
index 02f3894445..b3370af3d1 100644
--- a/drivers/power/regulator/pfuze100.c
+++ b/drivers/power/regulator/pfuze100.c
@@ -524,7 +524,7 @@ static int pfuze100_regulator_set_value(struct udevice *dev, int uV)
 	return pfuze100_regulator_val(dev, PMIC_OP_SET, &uV);
 }
 
-static bool pfuze100_regulator_get_enable(struct udevice *dev)
+static int pfuze100_regulator_get_enable(struct udevice *dev)
 {
 	int ret;
 	bool enable = false;