diff options
author | Keerthy | 2017-06-13 09:53:56 +0530 |
---|---|---|
committer | Jaehoon Chung | 2017-07-19 19:13:59 +0900 |
commit | a79e8dfed6e8dad5887d37b59a497b8ebb17f8fa (patch) | |
tree | 3140a1c3c5135bbe1f8840cbdf5d6d6821c5ed4d /drivers/power/regulator | |
parent | 43d0247e3ef8e2f6551026d298dea84d9c7fb2d7 (diff) |
power: regulator: lp87565: 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/regulator')
-rw-r--r-- | drivers/power/regulator/lp87565_regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/regulator/lp87565_regulator.c b/drivers/power/regulator/lp87565_regulator.c index 2a0b8ca6423..d908f6d1fb2 100644 --- a/drivers/power/regulator/lp87565_regulator.c +++ b/drivers/power/regulator/lp87565_regulator.c @@ -166,7 +166,7 @@ static int buck_set_value(struct udevice *dev, int uV) return lp87565_buck_val(dev, PMIC_OP_SET, &uV); } -static bool buck_get_enable(struct udevice *dev) +static int buck_get_enable(struct udevice *dev) { bool enable = false; int ret; |