summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2017-06-13 04:23:45 (GMT)
committerJaehoon Chung <jh80.chung@samsung.com>2017-07-19 10:13:59 (GMT)
commit06bdf6003b6951154bf1d0876fc7174c53df766c (patch)
tree5243c06c3a79b76505ca26469d91d1490d06490c /drivers/power
parent343749c42554b058e53086aefe21d47b383326d5 (diff)
downloadu-boot-fsl-qoriq-06bdf6003b6951154bf1d0876fc7174c53df766c.tar.xz
regulator: Change get_enable return type to integer from bool
Change get_enable return type to int so errors can be returned. 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/regulator-uclass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulator/regulator-uclass.c
index 0a1d1b3..426a933 100644
--- a/drivers/power/regulator/regulator-uclass.c
+++ b/drivers/power/regulator/regulator-uclass.c
@@ -96,7 +96,7 @@ int regulator_set_current(struct udevice *dev, int uA)
return ops->set_current(dev, uA);
}
-bool regulator_get_enable(struct udevice *dev)
+int regulator_get_enable(struct udevice *dev)
{
const struct dm_regulator_ops *ops = dev_get_driver_ops(dev);