From patchwork Mon Jun 12 14:36:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 774668 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 3wmb8b5fLfz9s65 for ; Tue, 13 Jun 2017 00:37:35 +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="H/3ZMVuD"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id CDBD6C21F09; Mon, 12 Jun 2017 14:37:32 +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 6D07FC21C88; Mon, 12 Jun 2017 14:37:30 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D1EC1C21C88; Mon, 12 Jun 2017 14:37:28 +0000 (UTC) Received: from fllnx209.ext.ti.com (fllnx209.ext.ti.com [198.47.19.16]) by lists.denx.de (Postfix) with ESMTPS id 28157C21C69 for ; Mon, 12 Jun 2017 14:37:28 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id v5CEaek7012093; Mon, 12 Jun 2017 09:36:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1497278200; bh=5nTLQSOiAp9mrB+F6TVK8YDPHu9XZ5KZzh2kG9yLFIg=; h=From:To:CC:Subject:Date; b=H/3ZMVuDbR50iFlcETDMNWCFrXzMLuAmo8rIIFdjh0V/Y9gEA+vEGeLjzPEII0Dw4 JwHBpGoUORMaPmtN/hobM/6d+Y7keqBnCxXcK+1beF3I3HJLw9WZWRlESvg35lSLnB jNqd14UUOF1rdt4f0jZn8+hOk05CLV4y6hhYOfbU= Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v5CEaZVQ026874; Mon, 12 Jun 2017 09:36:35 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.294.0; Mon, 12 Jun 2017 09:36:35 -0500 Received: from ula0393675.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v5CEaUAx015115; Mon, 12 Jun 2017 09:36:31 -0500 From: Keerthy To: , Date: Mon, 12 Jun 2017 20:06:18 +0530 Message-ID: <1497278179-6439-1-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Cc: t-kristo@ti.com, u-boot@lists.denx.de, trini@konsulko.com Subject: [U-Boot] [PATCH v2 1/2] regulator: lp87565: 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: 2dd9dc02a3("power: regulator: lp87565: add regulator support") Reported-by:Nishanth Menon Signed-off-by: Keerthy --- drivers/power/regulator/lp87565_regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/regulator/lp87565_regulator.c b/drivers/power/regulator/lp87565_regulator.c index 2a0b8ca..e5de578 100644 --- a/drivers/power/regulator/lp87565_regulator.c +++ b/drivers/power/regulator/lp87565_regulator.c @@ -174,7 +174,7 @@ static bool buck_get_enable(struct udevice *dev) ret = lp87565_buck_enable(dev, PMIC_OP_GET, &enable); if (ret) - return ret; + return false; return enable; }