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>
This commit is contained in:
Keerthy 2017-06-13 09:53:52 +05:30 committed by Jaehoon Chung
parent 2a4747d3cd
commit 585c7032bf

View File

@ -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;