diff options
author | Keerthy | 2017-06-13 09:53:46 +0530 |
---|---|---|
committer | Jaehoon Chung | 2017-07-19 19:13:59 +0900 |
commit | 0f2194d82581b6a455f9b3dad6bb8b4db6ad9893 (patch) | |
tree | 000c7606b2c7403e62fde52a7596af86dd0522b6 /drivers/power/regulator | |
parent | 06bdf6003b6951154bf1d0876fc7174c53df766c (diff) |
power: regulator: 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')
-rw-r--r-- | drivers/power/regulator/fixed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/regulator/fixed.c b/drivers/power/regulator/fixed.c index 656371b2351..35c292222b9 100644 --- a/drivers/power/regulator/fixed.c +++ b/drivers/power/regulator/fixed.c @@ -89,7 +89,7 @@ static int fixed_regulator_get_current(struct udevice *dev) return uc_pdata->min_uA; } -static bool fixed_regulator_get_enable(struct udevice *dev) +static int fixed_regulator_get_enable(struct udevice *dev) { struct fixed_regulator_platdata *dev_pdata = dev_get_platdata(dev); |