mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-03 17:43:45 +08:00
power: regulator: pfuze100: 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
5c3195c61b
commit
117daa8220
@ -524,7 +524,7 @@ static int pfuze100_regulator_set_value(struct udevice *dev, int uV)
|
||||
return pfuze100_regulator_val(dev, PMIC_OP_SET, &uV);
|
||||
}
|
||||
|
||||
static bool pfuze100_regulator_get_enable(struct udevice *dev)
|
||||
static int pfuze100_regulator_get_enable(struct udevice *dev)
|
||||
{
|
||||
int ret;
|
||||
bool enable = false;
|
||||
|
Loading…
Reference in New Issue
Block a user