diff options
author | Keerthy <j-keerthy@ti.com> | 2017-06-13 09:53:48 +0530 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2017-07-19 19:13:59 +0900 |
commit | b616835ddf3d6e2e292075f491aa3f12268cc38f (patch) | |
tree | 493c2817a294f087bff6b75c6ff08d0a26a28cd3 /drivers | |
parent | 85f87de3132db38143b58bae1805e4d066dc9524 (diff) |
power: regulator: max77686: 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/max77686.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/regulator/max77686.c b/drivers/power/regulator/max77686.c index 5e5815f397..8780806cff 100644 --- a/drivers/power/regulator/max77686.c +++ b/drivers/power/regulator/max77686.c @@ -688,7 +688,7 @@ static int ldo_set_value(struct udevice *dev, int uV) return max77686_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; @@ -752,7 +752,7 @@ static int buck_set_value(struct udevice *dev, int uV) return max77686_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; |