From: Nishanth Menon Date: Fri, 9 Jun 2017 16:29:08 -0500 Subject: [U-Boot] [PATCH v3 2/2] power: regulator: lp87565: add regulator support In-Reply-To: <1496842709-13548-3-git-send-email-j-keerthy@ti.com> References: <1496842709-13548-1-git-send-email-j-keerthy@ti.com> <1496842709-13548-3-git-send-email-j-keerthy@ti.com> Message-ID: <084b6a37-e549-67c0-4eca-f124aa6b5b2b@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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