diff options
author | Keerthy <j-keerthy@ti.com> | 2017-06-13 09:53:56 +0530 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2017-07-19 19:13:59 +0900 |
commit | a79e8dfed6e8dad5887d37b59a497b8ebb17f8fa (patch) | |
tree | 3140a1c3c5135bbe1f8840cbdf5d6d6821c5ed4d | |
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>
-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 2a0b8ca642..d908f6d1fb 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; |