power: regulator: act8846: 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
0f2194d825
commit
85f87de313
@ -115,7 +115,7 @@ static int reg_set_enable(struct udevice *dev, bool enable)
|
||||
enable ? LDO_EN_MASK : 0);
|
||||
}
|
||||
|
||||
static bool reg_get_enable(struct udevice *dev)
|
||||
static int reg_get_enable(struct udevice *dev)
|
||||
{
|
||||
int reg = dev->driver_data;
|
||||
int ret;
|
||||
|
Loading…
Reference in New Issue
Block a user