Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1456593imm; Tue, 10 Jul 2018 02:02:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcZPUpguJSKW3z7bc1KlH6PccYgPhVx+wtGWLfvBUmY00thYKsVCZngljdiDB7Q/4yJytza X-Received: by 2002:a65:47cc:: with SMTP id f12-v6mr21870875pgs.173.1531213342346; Tue, 10 Jul 2018 02:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531213342; cv=none; d=google.com; s=arc-20160816; b=R57MRlmHiLXwYVeeM4aEVl1CpXUXduJ37MuIcySWdxvYiEvA5dIvooOENOsaKthX/k YUeb6zkcLR0Ku3nFNlnyS5cDsr4xw4/KoywFFttx3ztYaHE9ckbQUttmPkwtUDLYw4uU pARBNSVGQLjVkA2auN+tEaHs7Vs3gd/IcnsYYl3ggXgasvb4xI1qfpWX9BN3EJ+Upt8F nkT7SIRdUboLx3cSsV+JFOm76gEIgo+vxyHZgJdJdf3gZCfsCQt15v+xNKvC/tYATgfM ZNqScAvZkFS9owdYdyrQepxzIaIdl4dElmJcvQQ1QrHy24g6qhhl4/ZDz4P8M0knaT03 fBbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=WIYyJRfyP+2i54rBHI2OnQKGYax6WOy8p0Q7tsazNak=; b=GjU5cl2Gq6+c+imD9CvsrtRUuzRkjWIBIY5lQNu5CytBvIIBi7EAMkV/po9wOX3TeO NJrzW7HuEMyRJU7qWBTEjEwamhMo+HXky13oJUSsFjAtb1jONsHqAwe9fWH92qF6+UpS K4TbNHAw5uk5Kqb4cMDyejKz6BpmiqNbJuwPRii+Kvgo04WNsf++ZytqLegGatmScvCD 26lPbfJI9zL+UnQ8nqnaFiq5+lR7GqFSo/plMCjTokEdq5i775FbMh/AY5zvO+/Obq0A pMZxoGK9mFG5OwXa3dSYs6KcXBGgtMD6sSq/+VsJFtvRZvQA3eT+XLOomkuK1hVMyWBy vPrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QhrI07Cm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g124-v6si16809965pfb.280.2018.07.10.02.02.07; Tue, 10 Jul 2018 02:02:22 -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=pass header.i=@linaro.org header.s=google header.b=QhrI07Cm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933279AbeGJJAJ (ORCPT + 99 others); Tue, 10 Jul 2018 05:00:09 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:50430 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751285AbeGJJAI (ORCPT ); Tue, 10 Jul 2018 05:00:08 -0400 Received: by mail-wm0-f65.google.com with SMTP id v25-v6so23841425wmc.0 for ; Tue, 10 Jul 2018 02:00:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=WIYyJRfyP+2i54rBHI2OnQKGYax6WOy8p0Q7tsazNak=; b=QhrI07CmRUMXNInj78WoSAvmO9BVhxSH117SHWPIqBtWLNO8jgOwU1hAVmodnwXyqN GH9JwMMj/zlZfuOLOn23W09IQDBZYCEsnkVUK9qqlnKY9rm+qSQBMPe9phWZLRiWtSS7 U4Tv93kG6+iZOmzjm1Idg+LKxlQDcWwdgcPVo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=WIYyJRfyP+2i54rBHI2OnQKGYax6WOy8p0Q7tsazNak=; b=NZNEQxosYrFoc2U0zG6DNe090Ol5mTKSUdBn41Xqatfaw8KY+Weu7ckM6gGe6SGukl TIEK0dPMryJ2xcPj4a5VN2jfE6KG3OsxU9fBwZJD0Hpsb7YDRsaBFpv8cLkIwaMejJo2 XXDcpHw7/2mXhvto5u7VDpWJsTIobM/vUoaY2aHKmEuUFK8JkyFBUz42kuaWIpD6FncS 6eggVocRxMzRzHoTdlY9r2G0BTkSAx2cQ7iGMOAc/MeI+dccUHmN0Xl9l8qYoxxx8dwj 70FBJu8sJOWtcaGMoFzQWdFAmzvZigR6ylcFYvoGfH9TIkZatvrQnRkSa7yun3O6y3B+ R4sw== X-Gm-Message-State: APt69E2gsSr3zI10M71Ib8bkJhWaAphbP7VG7R0HESCtTT9xp5/t002g JgcPQbI6rsbPnZk+sJbFakdYLg== X-Received: by 2002:a1c:8b0d:: with SMTP id n13-v6mr13241695wmd.46.1531213207003; Tue, 10 Jul 2018 02:00:07 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id q200-v6sm10149620wmg.8.2018.07.10.02.00.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Jul 2018 02:00:05 -0700 (PDT) Date: Tue, 10 Jul 2018 10:00:03 +0100 From: Daniel Thompson To: "Gustavo A. R. Silva" Cc: Michael Hennerich , Lee Jones , Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] backlight: adp8860: Mark expected switch fall-through Message-ID: <20180710090003.2flpkbgkakmnefpn@holly.lan> References: <20180709215156.GA8782@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180709215156.GA8782@embeddedor.com> User-Agent: NeoMutt/20180622 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 09, 2018 at 04:51:56PM -0500, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Signed-off-by: Gustavo A. R. Silva Having checked the datasheets... Reviewed-by: Daniel Thompson > --- > drivers/video/backlight/adp8860_bl.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/video/backlight/adp8860_bl.c b/drivers/video/backlight/adp8860_bl.c > index 16119bd..f1dc41c 100644 > --- a/drivers/video/backlight/adp8860_bl.c > +++ b/drivers/video/backlight/adp8860_bl.c > @@ -690,6 +690,7 @@ static int adp8860_probe(struct i2c_client *client, > switch (ADP8860_MANID(reg_val)) { > case ADP8863_MANUFID: > data->gdwn_dis = !!pdata->gdwn_dis; > + /* fall through */ > case ADP8860_MANUFID: > data->en_ambl_sens = !!pdata->en_ambl_sens; > break; > -- > 2.7.4 >