From a79e8dfed6e8dad5887d37b59a497b8ebb17f8fa Mon Sep 17 00:00:00 2001 From: Keerthy Date: Tue, 13 Jun 2017 09:53:56 +0530 Subject: [PATCH] power: regulator: lp87565: 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 Reviewed-by: Simon Glass --- drivers/power/regulator/lp87565_regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/regulator/lp87565_regulator.c b/drivers/power/regulator/lp87565_regulator.c index 2a0b8ca..d908f6d 100644 --- a/drivers/power/regulator/lp87565_regulator.c +++ b/drivers/power/regulator/lp87565_regulator.c @@ -166,7 +166,7 @@ static int buck_set_value(struct udevice *dev, int uV) return lp87565_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; -- 2.7.4