From patchwork Fri Jun 21 13:26:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick DELAUNAY X-Patchwork-Id: 1120242 X-Patchwork-Delegate: patrick.delaunay73@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=st.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=st.com header.i=@st.com header.b="lYb379en"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45Vfg86XHxz9s4Y for ; Fri, 21 Jun 2019 23:29:40 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 8200EC21EDE; Fri, 21 Jun 2019 13:28:43 +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=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 49912C21E96; Fri, 21 Jun 2019 13:28:42 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6CF32C21EC3; Fri, 21 Jun 2019 13:27:31 +0000 (UTC) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [62.209.51.94]) by lists.denx.de (Postfix) with ESMTPS id CA805C21EF0 for ; Fri, 21 Jun 2019 13:27:31 +0000 (UTC) Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5LDRHEN031159; Fri, 21 Jun 2019 15:27:31 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=y9Jdq7AV1DoE338T9a24fnUJcYKdGMOI4Rbv5JIi7i4=; b=lYb379en/+cLAuaKZOeYi1CcgqKXHaY3OZ/CAgXvWG2n8+6H0c0hqbIIiXVl75F/0UUf Al6XwFo9qlnC8woXFZqvXPFWplBRl4TNsYbVw/MshO5X5FMnCNg6QrSf+gppDJ37uYyh Ld3GlyTnUaCHdicunLPMIm+7bRA0vD1BH9f+1vhy5STnVrbmkbt9uUrRYiyALmmUYeov 1MzEtfcD9XUysyG42pBRf163NkNK+U0zKXLD3l4SohzZ3qW8yd4vt1C7R5o5/ej5KoMd iEGPauNXIGr5t4GujN+cyReTx8wvXkHoX8uUgHw5DFVGaw50viKkqW+NxdrymsHffE25 qA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2t7813qeah-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 21 Jun 2019 15:27:31 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A9C3F34; Fri, 21 Jun 2019 13:27:19 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas24.st.com [10.75.90.94]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8EACD2A54; Fri, 21 Jun 2019 13:27:19 +0000 (GMT) Received: from SAFEX1HUBCAS22.st.com (10.75.90.93) by Safex1hubcas24.st.com (10.75.90.94) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 21 Jun 2019 15:27:19 +0200 Received: from localhost (10.201.23.85) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 21 Jun 2019 15:27:19 +0200 From: Patrick Delaunay To: Date: Fri, 21 Jun 2019 15:26:53 +0200 Message-ID: <1561123618-2029-15-git-send-email-patrick.delaunay@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561123618-2029-1-git-send-email-patrick.delaunay@st.com> References: <1561123618-2029-1-git-send-email-patrick.delaunay@st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.23.85] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-21_09:, , signatures=0 Cc: U-Boot STM32 Subject: [U-Boot] [PATCH 15/20] power: stpmic1: Fix warnings when compiling with W=1 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" This patch solves the following warnings: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Patrick Delaunay --- drivers/power/regulator/stpmic1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/regulator/stpmic1.c b/drivers/power/regulator/stpmic1.c index 50ef2a2..1e3f96f 100644 --- a/drivers/power/regulator/stpmic1.c +++ b/drivers/power/regulator/stpmic1.c @@ -422,6 +422,7 @@ static int stpmic1_ldo_set_mode(struct udevice *dev, int mode) case STPMIC1_LDO_MODE_SINK_SOURCE: ret &= ~STPMIC1_LDO12356_VOUT_MASK; ret |= STPMIC1_LDO3_DDR_SEL << STPMIC1_LDO12356_VOUT_SHIFT; + /* fallthrough */ case STPMIC1_LDO_MODE_NORMAL: ret &= ~STPMIC1_LDO3_MODE; break;