aboutsummaryrefslogtreecommitdiff
path: root/drivers/power/regulator
diff options
context:
space:
mode:
authorKeerthy2017-06-13 09:53:50 +0530
committerJaehoon Chung2017-07-19 19:13:59 +0900
commit117daa82204f502d245e4d4f4be3b8cd712b244f (patch)
treedbf902a42107534a2e54bd1441bfee877fdffd65 /drivers/power/regulator
parent5c3195c61b167a86fddd81faab1634e3b841d475 (diff)
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>
Diffstat (limited to 'drivers/power/regulator')
-rw-r--r--drivers/power/regulator/pfuze100.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/regulator/pfuze100.c b/drivers/power/regulator/pfuze100.c
index 02f38944453..b3370af3d12 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;