From: Keerthy Date: Tue, 13 Jun 2017 09:04:37 +0530 Subject: [U-Boot] [PATCH 2/3] regulator: lp873x: Fix the return value of ldo_get_enable function In-Reply-To: References: <1497157289-7652-1-git-send-email-j-keerthy@ti.com> <1497157289-7652-2-git-send-email-j-keerthy@ti.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday 13 June 2017 05:21 AM, Simon Glass wrote: > On 10 June 2017 at 23:01, Keerthy wrote: >> The function wrongly returned an integer while it is supposed to >> return boolean. Fix that. >> >> Fixes: 99785de83 ("power: regulator: lp873x: Add regulator support") >> Signed-off-by: Keerthy >> --- >> drivers/power/regulator/lp873x_regulator.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> > > Reviewed-by: Simon Glass > > I think in fact we should return int from this method in struct > dm_regulator_ops. I don't really like not being able to return an > error. > > So bonus points if you can change that :-) I did not touch it as it was being used at many places. Seems like that is the right thing to do. I believe this series can be discarded. I will post a series where in all are changed to return int. >