mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-26 00:21:37 +00:00
power: regulator: max77686: 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
85f87de313
commit
b616835ddf
1 changed files with 2 additions and 2 deletions
|
@ -688,7 +688,7 @@ static int ldo_set_value(struct udevice *dev, int uV)
|
|||
return max77686_ldo_val(dev, PMIC_OP_SET, &uV);
|
||||
}
|
||||
|
||||
static bool ldo_get_enable(struct udevice *dev)
|
||||
static int ldo_get_enable(struct udevice *dev)
|
||||
{
|
||||
bool enable = false;
|
||||
int ret;
|
||||
|
@ -752,7 +752,7 @@ static int buck_set_value(struct udevice *dev, int uV)
|
|||
return max77686_buck_val(dev, PMIC_OP_SET, &uV);
|
||||
}
|
||||
|
||||
static bool buck_get_enable(struct udevice *dev)
|
||||
static int buck_get_enable(struct udevice *dev)
|
||||
{
|
||||
bool enable = false;
|
||||
int ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue