summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2017-06-13 09:53:55 +0530
committerJaehoon Chung <jh80.chung@samsung.com>2017-07-19 19:13:59 +0900
commit43d0247e3ef8e2f6551026d298dea84d9c7fb2d7 (patch)
tree584ad0e94b5f8ede2af9935d9f4f5f45f569738e /drivers
parent4e98a140c8a7d8accd0101be17227f29aa1ec41f (diff)
downloadu-boot-43d0247e3ef8e2f6551026d298dea84d9c7fb2d7.tar.gz
u-boot-43d0247e3ef8e2f6551026d298dea84d9c7fb2d7.tar.xz
u-boot-43d0247e3ef8e2f6551026d298dea84d9c7fb2d7.zip
power: regulator: lp873x: 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')
-rw-r--r--drivers/power/regulator/lp873x_regulator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/regulator/lp873x_regulator.c b/drivers/power/regulator/lp873x_regulator.c
index dcb19ff25c..11371a7b8b 100644
--- a/drivers/power/regulator/lp873x_regulator.c
+++ b/drivers/power/regulator/lp873x_regulator.c
@@ -256,7 +256,7 @@ static int ldo_set_value(struct udevice *dev, int uV)
return lp873x_ldo_val(dev, PMIC_OP_SET, &uV);
}
-static bool ldo_get_enable(struct udevice *dev)
+static int ldo_get_enable(struct udevice *dev)
{
bool enable = false;
int ret;
@@ -310,7 +310,7 @@ static int buck_set_value(struct udevice *dev, int uV)
return lp873x_buck_val(dev, PMIC_OP_SET, &uV);
}
-static bool buck_get_enable(struct udevice *dev)
+static int buck_get_enable(struct udevice *dev)
{
bool enable = false;
int ret;