summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2017-06-13 09:53:47 +0530
committerJaehoon Chung <jh80.chung@samsung.com>2017-07-19 19:13:59 +0900
commit85f87de3132db38143b58bae1805e4d066dc9524 (patch)
tree9db92b5fd5a34cf52881da661de6fd6da5dc9612 /drivers
parent0f2194d82581b6a455f9b3dad6bb8b4db6ad9893 (diff)
downloadu-boot-85f87de3132db38143b58bae1805e4d066dc9524.tar.gz
u-boot-85f87de3132db38143b58bae1805e4d066dc9524.tar.xz
u-boot-85f87de3132db38143b58bae1805e4d066dc9524.zip
power: regulator: act8846: 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')
-rw-r--r--drivers/power/regulator/act8846.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/regulator/act8846.c b/drivers/power/regulator/act8846.c
index d506165120..7d86aae32b 100644
--- a/drivers/power/regulator/act8846.c
+++ b/drivers/power/regulator/act8846.c
@@ -115,7 +115,7 @@ static int reg_set_enable(struct udevice *dev, bool enable)
enable ? LDO_EN_MASK : 0);
}
-static bool reg_get_enable(struct udevice *dev)
+static int reg_get_enable(struct udevice *dev)
{
int reg = dev->driver_data;
int ret;