mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
power: regulator: palmas: 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
b616835ddf
commit
5c3195c61b
1 changed files with 2 additions and 2 deletions
|
|
@ -304,7 +304,7 @@ static int ldo_set_value(struct udevice *dev, int uV)
|
|||
return palmas_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;
|
||||
|
|
@ -411,7 +411,7 @@ static int smps_set_value(struct udevice *dev, int uV)
|
|||
return palmas_smps_val(dev, PMIC_OP_SET, &uV);
|
||||
}
|
||||
|
||||
static bool smps_get_enable(struct udevice *dev)
|
||||
static int smps_get_enable(struct udevice *dev)
|
||||
{
|
||||
bool enable = false;
|
||||
int ret;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue