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:
06bdf60
)
power: regulator: fixed: get_enable should return integer
author
Keerthy
<j-keerthy@ti.com>
Tue, 13 Jun 2017 04:23:46 +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/fixed.c
patch
|
blob
|
history
diff --git
a/drivers/power/regulator/fixed.c
b/drivers/power/regulator/fixed.c
index 656371b2351955cb35791ecdc3550a35309f9d03..35c292222b97eb8246af50dee64595a5a8620fb9 100644
(file)
--- a/
drivers/power/regulator/fixed.c
+++ b/
drivers/power/regulator/fixed.c
@@
-89,7
+89,7
@@
static int fixed_regulator_get_current(struct udevice *dev)
return uc_pdata->min_uA;
}
-static
bool
fixed_regulator_get_enable(struct udevice *dev)
+static
int
fixed_regulator_get_enable(struct udevice *dev)
{
struct fixed_regulator_platdata *dev_pdata = dev_get_platdata(dev);