power: regulator: 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
06bdf6003b
commit
0f2194d825
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user