summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2017-06-13 09:53:54 +0530
committerJaehoon Chung <jh80.chung@samsung.com>2017-07-19 19:13:59 +0900
commit4e98a140c8a7d8accd0101be17227f29aa1ec41f (patch)
treed57eb460e9c40debebb9d5cff73ba7823df38df0
parent3bbe7c136b3177acd02a185cf2492ba640a63977 (diff)
downloadu-boot-4e98a140c8a7d8accd0101be17227f29aa1ec41f.tar.gz
power: regulator: s5m8767: 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>
-rw-r--r--drivers/power/regulator/s5m8767.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/regulator/s5m8767.c b/drivers/power/regulator/s5m8767.c
index 93a3c942d1..871da122b4 100644
--- a/drivers/power/regulator/s5m8767.c
+++ b/drivers/power/regulator/s5m8767.c
@@ -186,7 +186,7 @@ static int reg_set_enable(struct udevice *dev, const struct s5m8767_para *param,
return ret;
}
-static bool ldo_get_enable(struct udevice *dev)
+static int ldo_get_enable(struct udevice *dev)
{
int ldo = dev->driver_data;
@@ -226,7 +226,7 @@ static int buck_set_value(struct udevice *dev, int uv)
return reg_set_value(dev, &buck_param[buck], uv);
}
-static bool buck_get_enable(struct udevice *dev)
+static int buck_get_enable(struct udevice *dev)
{
int buck = dev->driver_data;