[U-Boot] [PATCH v3 2/2] power: regulator: lp87565: add regulator support

Nishanth Menon nm at ti.com
Fri Jun 9 21:29:08 UTC 2017


On 06/07/2017 08:38 AM, Keerthy wrote:

> +static bool buck_get_enable(struct udevice *dev)
> +{
> +	bool enable = false;
> +	int ret;
> +
> +
> +	ret = lp87565_buck_enable(dev, PMIC_OP_GET, &enable);
> +	if (ret)
> +		return ret;

Somehow does'nt look right, why return int for a bool function? return 
false perhaps?


-- 
Regards,
Nishanth Menon


More information about the U-Boot mailing list