summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2017-06-13 04:23:49 (GMT)
committerJaehoon Chung <jh80.chung@samsung.com>2017-07-19 10:13:59 (GMT)
commit5c3195c61b167a86fddd81faab1634e3b841d475 (patch)
tree19f12370a7605745d746c7f0183ba618508d3569 /drivers/power
parentb616835ddf3d6e2e292075f491aa3f12268cc38f (diff)
downloadu-boot-fsl-qoriq-5c3195c61b167a86fddd81faab1634e3b841d475.tar.xz
power: regulator: palmas: 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/palmas_regulator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/regulator/palmas_regulator.c b/drivers/power/regulator/palmas_regulator.c
index 841c03a..99614b0 100644
--- a/drivers/power/regulator/palmas_regulator.c
+++ b/drivers/power/regulator/palmas_regulator.c
@@ -304,7 +304,7 @@ static int ldo_set_value(struct udevice *dev, int uV)
return palmas_ldo_val(dev, PMIC_OP_SET, &uV);
}
-static bool ldo_get_enable(struct udevice *dev)
+static int ldo_get_enable(struct udevice *dev)
{
bool enable = false;
int ret;
@@ -411,7 +411,7 @@ static int smps_set_value(struct udevice *dev, int uV)
return palmas_smps_val(dev, PMIC_OP_SET, &uV);
}
-static bool smps_get_enable(struct udevice *dev)
+static int smps_get_enable(struct udevice *dev)
{
bool enable = false;
int ret;