summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2017-06-13 04:23:51 (GMT)
committerJaehoon Chung <jh80.chung@samsung.com>2017-07-19 10:13:59 (GMT)
commit2a4747d3cd515168affaaadd8d10928e0ebb4996 (patch)
tree600231ca0dd5c93a74c146a54aa3a1e76d0fc543 /drivers/power
parent117daa82204f502d245e4d4f4be3b8cd712b244f (diff)
downloadu-boot-fsl-qoriq-2a4747d3cd515168affaaadd8d10928e0ebb4996.tar.xz
power: regulator: tps65090: 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')
-rw-r--r--drivers/power/regulator/tps65090_regulator.c2
1 files changed, 1 insertions, 1 deletions
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;