power: sandbox: fixed: 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:
parent
585c7032bf
commit
3bbe7c136b
@ -234,7 +234,7 @@ static int buck_set_current(struct udevice *dev, int uA)
|
|||||||
buck_current_range, uA);
|
buck_current_range, uA);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool buck_get_enable(struct udevice *dev)
|
static int buck_get_enable(struct udevice *dev)
|
||||||
{
|
{
|
||||||
if (out_get_mode(dev) == BUCK_OM_OFF)
|
if (out_get_mode(dev) == BUCK_OM_OFF)
|
||||||
return false;
|
return false;
|
||||||
@ -310,7 +310,7 @@ static int ldo_set_current(struct udevice *dev, int uA)
|
|||||||
ldo_current_range, uA);
|
ldo_current_range, uA);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool ldo_get_enable(struct udevice *dev)
|
static int ldo_get_enable(struct udevice *dev)
|
||||||
{
|
{
|
||||||
if (out_get_mode(dev) == LDO_OM_OFF)
|
if (out_get_mode(dev) == LDO_OM_OFF)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user