diff options
author | Keerthy | 2017-06-13 09:53:47 +0530 |
---|---|---|
committer | Jaehoon Chung | 2017-07-19 19:13:59 +0900 |
commit | 85f87de3132db38143b58bae1805e4d066dc9524 (patch) | |
tree | 9db92b5fd5a34cf52881da661de6fd6da5dc9612 /drivers/power | |
parent | 0f2194d82581b6a455f9b3dad6bb8b4db6ad9893 (diff) |
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/power')
-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 d5061651208..7d86aae32bb 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; |