diff options
author | Keerthy <j-keerthy@ti.com> | 2017-06-13 09:53:53 +0530 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2017-07-19 19:13:59 +0900 |
commit | 3bbe7c136b3177acd02a185cf2492ba640a63977 (patch) | |
tree | cf08333d769cc1eae4b4cfd6d5feaaa2434c0062 /drivers/power/regulator/sandbox.c | |
parent | 585c7032bf14026100858f3e4200d6409e73e4e1 (diff) |
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 <j-keerthy@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/power/regulator/sandbox.c')
-rw-r--r-- | drivers/power/regulator/sandbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |