[U-Boot] [PATCH 06/12] power: regulator: pfuze100: get_enable should return integer

Keerthy j-keerthy at ti.com
Tue Jun 13 04:23:50 UTC 2017


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

Signed-off-by: Keerthy <j-keerthy at ti.com>
---
 drivers/power/regulator/pfuze100.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/regulator/pfuze100.c b/drivers/power/regulator/pfuze100.c
index 4702161..3edc2aa 100644
--- a/drivers/power/regulator/pfuze100.c
+++ b/drivers/power/regulator/pfuze100.c
@@ -516,7 +516,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;
-- 
1.9.1



More information about the U-Boot mailing list