
9 Jun
2017
9 Jun
'17
11:29 p.m.
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