From patchwork Sun Jun 11 05:01:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keerthy X-Patchwork-Id: 774298 X-Patchwork-Delegate: jh80.chung@samsung.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3wlkRc6WJyz9s7M for ; Sun, 11 Jun 2017 15:02:36 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="Dx6YhIfx"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id B001AC21C9A; Sun, 11 Jun 2017 05:02:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id F20BAC21C52; Sun, 11 Jun 2017 05:02:04 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 54771C21C25; Sun, 11 Jun 2017 05:01:54 +0000 (UTC) Received: from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77]) by lists.denx.de (Postfix) with ESMTPS id 6237FC21C2A for ; Sun, 11 Jun 2017 05:01:51 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v5B51mbn017981; Sun, 11 Jun 2017 00:01:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1497157308; bh=9vLU7WlpGyAIWnlsJrS4iNUAERHWNdHtda43xLGdBlY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Dx6YhIfxrGNCcPBBbOOfdzVq2INAROSHqav5ljnVpeEeknEAkPrTHILvjyjBnn1io XcltdLGvuyHx7EIc/yt49p/gH/PEjf4cxHlNtFaa2TjBcXP136Z7NL8DUauB1Qe+1P nMhxQg7vOFmAQgAZnaHFCA753qlHmFl1tedBIXy0= Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v5B51mAY029276; Sun, 11 Jun 2017 00:01:48 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.294.0; Sun, 11 Jun 2017 00:01:48 -0500 Received: from ula0393675.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v5B51X5J002442; Sun, 11 Jun 2017 00:01:44 -0500 From: Keerthy To: , Date: Sun, 11 Jun 2017 10:31:29 +0530 Message-ID: <1497157289-7652-3-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1497157289-7652-1-git-send-email-j-keerthy@ti.com> References: <1497157289-7652-1-git-send-email-j-keerthy@ti.com> MIME-Version: 1.0 Cc: t-kristo@ti.com, nm@ti.com, u-boot@lists.denx.de, trini@konsulko.com Subject: [U-Boot] [PATCH 3/3] regulator: lp873x: Fix the return value of buck_get_enable function X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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(-) diff --git a/drivers/power/regulator/lp873x_regulator.c b/drivers/power/regulator/lp873x_regulator.c index 149a36d..8c26baf 100644 --- a/drivers/power/regulator/lp873x_regulator.c +++ b/drivers/power/regulator/lp873x_regulator.c @@ -318,7 +318,7 @@ static bool buck_get_enable(struct udevice *dev) ret = lp873x_buck_enable(dev, PMIC_OP_GET, &enable); if (ret) - return ret; + return false; return enable; }