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

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

diff --git a/drivers/power/regulator/act8846.c b/drivers/power/regulator/act8846.c
index d506165..7d86aae 100644
--- a/drivers/power/regulator/act8846.c
+++ b/drivers/power/regulator/act8846.c
@@ -115,7 +115,7 @@ static int reg_set_enable(struct udevice *dev, bool enable)
 			       enable ? LDO_EN_MASK : 0);
 }
 
-static bool reg_get_enable(struct udevice *dev)
+static int reg_get_enable(struct udevice *dev)
 {
 	int reg = dev->driver_data;
 	int ret;
-- 
1.9.1



More information about the U-Boot mailing list