projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c3195c
)
power: regulator: pfuze100: get_enable should return integer
author
Keerthy
<j-keerthy@ti.com>
Tue, 13 Jun 2017 04:23:50 +0000
(09:53 +0530)
committer
Jaehoon Chung
<jh80.chung@samsung.com>
Wed, 19 Jul 2017 10:13:59 +0000
(19:13 +0900)
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>
drivers/power/regulator/pfuze100.c
patch
|
blob
|
history
diff --git
a/drivers/power/regulator/pfuze100.c
b/drivers/power/regulator/pfuze100.c
index 02f38944453d9d9bc52ad257b007aee81d3f0a30..b3370af3d12adb89e64c3b6ccf7845050a767b62 100644
(file)
--- a/
drivers/power/regulator/pfuze100.c
+++ b/
drivers/power/regulator/pfuze100.c
@@
-524,7
+524,7
@@
static int pfuze100_regulator_set_value(struct udevice *dev, int uV)
return pfuze100_regulator_val(dev, PMIC_OP_SET, &uV);
}
-static
bool
pfuze100_regulator_get_enable(struct udevice *dev)
+static
int
pfuze100_regulator_get_enable(struct udevice *dev)
{
int ret;
bool enable = false;