From: Keerthy Date: Tue, 13 Jun 2017 04:23:47 +0000 (+0530) Subject: power: regulator: act8846: get_enable should return integer X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=85f87de3132db38143b58bae1805e4d066dc9524;p=u-boot.git 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 Reviewed-by: Simon Glass --- diff --git a/drivers/power/regulator/act8846.c b/drivers/power/regulator/act8846.c index d506165120..7d86aae32b 100644 --- a/drivers/power/regulator/act8846.c +++ b/drivers/power/regulator/act8846.c @@ -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;