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

Keerthy j-keerthy at ti.com
Sun Jun 11 03:47:00 UTC 2017



On Saturday 10 June 2017 02:59 AM, Nishanth Menon wrote:
> 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?

Sure. Will fix this. Thanks for catching it Nishanth!

> 
> 


More information about the U-Boot mailing list