From: Keerthy Date: Tue, 13 Jun 2017 04:23:53 +0000 (+0530) Subject: power: sandbox: fixed: get_enable should return integer X-Git-Tag: v2017.09-rc1~178 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3bbe7c136b3177acd02a185cf2492ba640a63977;p=u-boot power: sandbox: fixed: 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/sandbox.c b/drivers/power/regulator/sandbox.c index 2cca579a57..06c09fd051 100644 --- a/drivers/power/regulator/sandbox.c +++ b/drivers/power/regulator/sandbox.c @@ -234,7 +234,7 @@ static int buck_set_current(struct udevice *dev, int uA) buck_current_range, uA); } -static bool buck_get_enable(struct udevice *dev) +static int buck_get_enable(struct udevice *dev) { if (out_get_mode(dev) == BUCK_OM_OFF) return false; @@ -310,7 +310,7 @@ static int ldo_set_current(struct udevice *dev, int uA) ldo_current_range, uA); } -static bool ldo_get_enable(struct udevice *dev) +static int ldo_get_enable(struct udevice *dev) { if (out_get_mode(dev) == LDO_OM_OFF) return false;