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

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

diff --git a/drivers/power/regulator/tps65090_regulator.c b/drivers/power/regulator/tps65090_regulator.c
index affc504..32aeab9 100644
--- a/drivers/power/regulator/tps65090_regulator.c
+++ b/drivers/power/regulator/tps65090_regulator.c
@@ -23,7 +23,7 @@ static int tps65090_fet_probe(struct udevice *dev)
 	return 0;
 }
 
-static bool tps65090_fet_get_enable(struct udevice *dev)
+static int tps65090_fet_get_enable(struct udevice *dev)
 {
 	struct udevice *pmic = dev_get_parent(dev);
 	int ret, fet_id;
-- 
1.9.1



More information about the U-Boot mailing list