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

Keerthy j-keerthy at ti.com
Tue Jun 13 04:23:56 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/lp87565_regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/regulator/lp87565_regulator.c b/drivers/power/regulator/lp87565_regulator.c
index 2a0b8ca..d908f6d 100644
--- a/drivers/power/regulator/lp87565_regulator.c
+++ b/drivers/power/regulator/lp87565_regulator.c
@@ -166,7 +166,7 @@ static int buck_set_value(struct udevice *dev, int uV)
 	return lp87565_buck_val(dev, PMIC_OP_SET, &uV);
 }
 
-static bool buck_get_enable(struct udevice *dev)
+static int buck_get_enable(struct udevice *dev)
 {
 	bool enable = false;
 	int ret;
-- 
1.9.1



More information about the U-Boot mailing list