summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2017-06-13 09:53:46 +0530
committerJaehoon Chung <jh80.chung@samsung.com>2017-07-19 19:13:59 +0900
commit0f2194d82581b6a455f9b3dad6bb8b4db6ad9893 (patch)
tree000c7606b2c7403e62fde52a7596af86dd0522b6 /drivers/power
parent06bdf6003b6951154bf1d0876fc7174c53df766c (diff)
downloadu-boot-0f2194d82581b6a455f9b3dad6bb8b4db6ad9893.tar.gz
u-boot-0f2194d82581b6a455f9b3dad6bb8b4db6ad9893.tar.bz2
u-boot-0f2194d82581b6a455f9b3dad6bb8b4db6ad9893.zip
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')
-rw-r--r--drivers/power/regulator/fixed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/regulator/fixed.c b/drivers/power/regulator/fixed.c
index 656371b235..35c292222b 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);