summaryrefslogtreecommitdiff
path: root/drivers/power/regulator
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2017-06-13 09:53:52 +0530
committerJaehoon Chung <jh80.chung@samsung.com>2017-07-19 19:13:59 +0900
commit585c7032bf14026100858f3e4200d6409e73e4e1 (patch)
treeee71d14d42e8379f73a4728e0a545562e48d8c74 /drivers/power/regulator
parent2a4747d3cd515168affaaadd8d10928e0ebb4996 (diff)
power: regulator: rk8xx: 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/regulator')
-rw-r--r--drivers/power/regulator/rk8xx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/power/regulator/rk8xx.c b/drivers/power/regulator/rk8xx.c
index 7c0a3aaa89..76fc2eff60 100644
--- a/drivers/power/regulator/rk8xx.c
+++ b/drivers/power/regulator/rk8xx.c
@@ -177,7 +177,7 @@ static int buck_set_enable(struct udevice *dev, bool enable)
return _buck_set_enable(dev->parent, buck, enable);
}
-static bool buck_get_enable(struct udevice *dev)
+static int buck_get_enable(struct udevice *dev)
{
int buck = dev->driver_data - 1;
int ret;
@@ -236,7 +236,7 @@ static int ldo_set_enable(struct udevice *dev, bool enable)
enable ? mask : 0);
}
-static bool ldo_get_enable(struct udevice *dev)
+static int ldo_get_enable(struct udevice *dev)
{
int ldo = dev->driver_data - 1;
int ret;
@@ -262,7 +262,7 @@ static int switch_set_enable(struct udevice *dev, bool enable)
enable ? mask : 0);
}
-static bool switch_get_enable(struct udevice *dev)
+static int switch_get_enable(struct udevice *dev)
{
int sw = dev->driver_data - 1;
int ret;