mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-23 12:40:43 +01:00
power: regulator: s5m8767: 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
3bbe7c136b
commit
4e98a140c8
1 changed files with 2 additions and 2 deletions
|
|
@ -186,7 +186,7 @@ static int reg_set_enable(struct udevice *dev, const struct s5m8767_para *param,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static bool ldo_get_enable(struct udevice *dev)
|
||||
static int ldo_get_enable(struct udevice *dev)
|
||||
{
|
||||
int ldo = dev->driver_data;
|
||||
|
||||
|
|
@ -226,7 +226,7 @@ static int buck_set_value(struct udevice *dev, int uv)
|
|||
return reg_set_value(dev, &buck_param[buck], uv);
|
||||
}
|
||||
|
||||
static bool buck_get_enable(struct udevice *dev)
|
||||
static int buck_get_enable(struct udevice *dev)
|
||||
{
|
||||
int buck = dev->driver_data;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue