Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3138528ybh; Mon, 5 Aug 2019 12:46:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9uTekYdlJTURVWyfIoYs6KU+RG1wcD/Twx+B+iBsnZQcNCS4kEEftERsbQVI/QHPJP25r X-Received: by 2002:a17:902:2983:: with SMTP id h3mr147102177plb.45.1565034418965; Mon, 05 Aug 2019 12:46:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565034418; cv=none; d=google.com; s=arc-20160816; b=fSQTcONROXDyFLzUV9xhz7i6TUGXnV84XEWLYjnBRHkBysUBgiM6c+Gp9CIVdXXC+O yeUfngBiqowQ/l6dqBEIx9ibWvo0Th028J68q5u8kxW5fHHTbh92T8nS8muZ3c+i0apj hndJ5MdkJfyJeITY8Nd6mRJuqf1vwDAvWHxlKU8V4w9TxX4rfbuDPdUZh5EGOo/DlAQ9 teGieWxi/+t6zvh92Efm5hDmvgeWC7wKK241OWKCzKqoNXzsxXhJm/f7PvXz5K2uXgo6 Ts0lcCjID0j+ziY8x+97/K+mFtvYV1IKAyZEWnZhyX6KKAKezyVIfdPyxHud0zCsmhY9 //xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=WZPbcno5kDstBvt8/14fBFARpkWyA04NEb7lNKhBwGo=; b=iPot+mp2rYAt+mxZkhIn9FilfPRI128A2mmzKZsU4naJ2JpWO5QP4+ep9OzoUh/9Ys BkK014v8SyxxKu+83sUcRsf+Pw+X6Fzr6jbSipVIgW+BKsJw80o1JCljdcy+XeHWjniA HpJLIJHJNONJZE+/YS11JbznUhsNPQxpwEJMHUyprF2STDYrrYjlzTi8q9zxrCnz51td JAIPodokYlqQ+xD7tD9iCWU4EmYGLtLhAlnbmA7kwo4eh0/H9htCqjomUn7FO9vHk5DL ika5mVCT2WPR/DJxpgjIocK6zINtzLj0692wsx31hCmCmf2jXaPH08QPP98lVXUTvzGH ZMfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=Od0w6vJj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y198si43045532pfb.98.2019.08.05.12.46.43; Mon, 05 Aug 2019 12:46:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=Od0w6vJj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730533AbfHEToU (ORCPT + 99 others); Mon, 5 Aug 2019 15:44:20 -0400 Received: from gateway21.websitewelcome.com ([192.185.45.147]:14673 "EHLO gateway21.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727830AbfHEToU (ORCPT ); Mon, 5 Aug 2019 15:44:20 -0400 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway21.websitewelcome.com (Postfix) with ESMTP id E5A8E400CD15C for ; Mon, 5 Aug 2019 14:44:19 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id uiu3htqlm2qH7uiu3huraq; Mon, 05 Aug 2019 14:44:19 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Type:MIME-Version:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=WZPbcno5kDstBvt8/14fBFARpkWyA04NEb7lNKhBwGo=; b=Od0w6vJjgFOjV4WuKR7HZjOgLO 8TuIhgXjPRkicKU9lFgd6WQoTHi0q+24vrDj3y7WjG44MKbrSfs85etsIW2TQfFbXKkaEfJahLpqD +wuvNejPnQRI74S/vh3SPLono+L6uJlcJjnj9hrG4KlYgfob+REwCDSir0iOJ3ZlGNOoMPvilltbW 7eJN+GNnMsg2qWCjjM7aLSqx4oo7HKADwTl1u1DZvK++mXGRZznSMKWyAAO3/2i8HTVgzNcj4R+01 6N19tIierQic0sY61GLjt0lvYQZJdM01hR34NSZEd4GbE87k2WvhxuchvuktOzOaKPQQUAooxKGCz /Rqx/3RA==; Received: from [187.192.11.120] (port=38214 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.92) (envelope-from ) id 1huiu2-003O9k-Rw; Mon, 05 Aug 2019 14:44:18 -0500 Date: Mon, 5 Aug 2019 14:44:18 -0500 From: "Gustavo A. R. Silva" To: Sebastian Reichel Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] power: supply: ab8500_charger: Mark expected switch fall-through Message-ID: <20190805194418.GA14438@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 187.192.11.120 X-Source-L: No X-Exim-ID: 1huiu2-003O9k-Rw X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [187.192.11.120]:38214 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 11 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mark switch cases where we are expecting to fall through. This patch fixes the following warning (Building: allmodconfig arm): drivers/power/supply/ab8500_charger.c:738:6: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Gustavo A. R. Silva --- drivers/power/supply/ab8500_charger.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/supply/ab8500_charger.c b/drivers/power/supply/ab8500_charger.c index 30de448de802..1be75a2fed9b 100644 --- a/drivers/power/supply/ab8500_charger.c +++ b/drivers/power/supply/ab8500_charger.c @@ -742,6 +742,7 @@ static int ab8500_charger_max_usb_curr(struct ab8500_charger *di, USB_CH_IP_CUR_LVL_1P5; break; } + /* else, fall through */ case USB_STAT_HM_IDGND: dev_err(di->dev, "USB Type - Charging not allowed\n"); di->max_usb_in_curr.usb_type_max = USB_CH_IP_CUR_LVL_0P05; -- 2.22.0