diff options
author | Keerthy <j-keerthy@ti.com> | 2017-06-13 04:23:47 (GMT) |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2017-07-19 10:13:59 (GMT) |
commit | 85f87de3132db38143b58bae1805e4d066dc9524 (patch) | |
tree | 9db92b5fd5a34cf52881da661de6fd6da5dc9612 | |
parent | 0f2194d82581b6a455f9b3dad6bb8b4db6ad9893 (diff) | |
download | u-boot-fsl-qoriq-85f87de3132db38143b58bae1805e4d066dc9524.tar.xz |
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>
-rw-r--r-- | drivers/power/regulator/act8846.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/regulator/act8846.c b/drivers/power/regulator/act8846.c index d506165..7d86aae 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; |