From: Keerthy Date: Tue, 13 Jun 2017 04:23:56 +0000 (+0530) Subject: power: regulator: lp87565: get_enable should return integer X-Git-Tag: v2017.09-rc1~175 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a79e8dfed6e8dad5887d37b59a497b8ebb17f8fa;p=u-boot 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 --- diff --git a/drivers/power/regulator/lp87565_regulator.c b/drivers/power/regulator/lp87565_regulator.c index 2a0b8ca642..d908f6d1fb 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;