Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1526312ybh; Thu, 16 Jul 2020 14:59:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZbSca0etAMSNCVlsanekYNtAL69ewp0VFmqkmawixrUuyfr8S/jT7UfUCL87NM8fhvKKu X-Received: by 2002:a17:906:cd19:: with SMTP id oz25mr5703148ejb.36.1594936743834; Thu, 16 Jul 2020 14:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594936743; cv=none; d=google.com; s=arc-20160816; b=0VjrTwQ/9gj45mdsLAwi2vbrDM1K+OAuMf3SM9jg+yQAmbOUKaiGZCLtBk2wKfphrE UXAniHa8I470jWSVS9xMPhDAIKOdmV0PJC8yNtWXuDoGS9l8PW/b/4895/mUoBpmpAvZ rmpHCb2KzrvQ4F7Qludr4GzrKR95Ey2CoZ00ieY4jZx0SolWB7ixA+v6aZ256YSDijKa 0T7TpBOBGRiZ9HqXBaNJ664qb/vHt/IcZNlQOmJRA+yQs8SYGmrSSv41/AWPligT2T+z NhUOgFjJosFCpe9iTzmATM26CJhufsaC5TedwQuIle8TE+JvxVNEDLvAl22qnLvuoMH1 9NRA== 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=krYKSs4JxRzZtknR7wqJDkCPaSshFhj861UGa3Zh9Vk=; b=cCxDBqtTwNrfIcD+f2lfr4KRLf4Hj83u9Yu41uKZfU8oSHujYXihQiVdNYXBw7XTHS kb8cD6tggPAGbHPKxdFZ9OeXQ1ptDfwkjdXSpyP34rhKJO03sEOz5DStRN6SsO09L82A BlQOARBS2NfrK2yfw2CAILjNPMssUIsKDTa2tBiybBkNnKdIB8HBv/cE0M0qK4dqlOOT M8N6CULvoWRbIrbOjuTXWBTmv0avquPUexWMw/bddVViujxVQU8el3gFW8ruq4hjRAw4 Be5x5daszT2zt34WSzC2obpESR1clnzEQYFNx64yIdrppjrfdgOeExX77pJJPEDWHXGW vbdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="lh48t//C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw14si4012399edb.419.2020.07.16.14.58.41; Thu, 16 Jul 2020 14:59:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="lh48t//C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726837AbgGPV5n (ORCPT + 99 others); Thu, 16 Jul 2020 17:57:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:49734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbgGPV5m (ORCPT ); Thu, 16 Jul 2020 17:57:42 -0400 Received: from embeddedor (unknown [201.162.240.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F3E5C20760; Thu, 16 Jul 2020 21:57:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594936662; bh=FHwxDK6igepiClPQE90tVnqtFkR6rnuVQojDpvUDhng=; h=Date:From:To:Cc:Subject:From; b=lh48t//CK7yWibSt6BTRlq2Qj8l0UzaVq2UJWHVbrEM2SICTxHPdPXvDRtEgOW+4J zpMHTMO1HOIMs7R+CKKpX4XzP2LWYMqBzdGZuCnszjP8TfPlP31MhSSjFwYPLVAPVI Wiz9qfgGbgTFegz48iH/0yK2jFwWWNPrP8ZCQixs= Date: Thu, 16 Jul 2020 17:03:07 -0500 From: "Gustavo A. R. Silva" To: Jean Delvare Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH][next] i2c: busses: Use fallthrough pseudo-keyword Message-ID: <20200716220307.GA19706@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva --- drivers/i2c/busses/i2c-amd8111.c | 2 +- drivers/i2c/busses/i2c-i801.c | 8 ++++---- drivers/i2c/busses/i2c-viapro.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/busses/i2c-amd8111.c b/drivers/i2c/busses/i2c-amd8111.c index 2b14fef5bf26..34862ad3423e 100644 --- a/drivers/i2c/busses/i2c-amd8111.c +++ b/drivers/i2c/busses/i2c-amd8111.c @@ -381,7 +381,7 @@ static s32 amd8111_access(struct i2c_adapter * adap, u16 addr, if (status) return status; len = min_t(u8, len, I2C_SMBUS_BLOCK_MAX); - /* fall through */ + fallthrough; case I2C_SMBUS_I2C_BLOCK_DATA: for (i = 0; i < len; i++) { status = amd_ec_read(smbus, AMD_SMB_DATA + i, diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index 1fc7ae77753d..638e7f7c66cc 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -1765,19 +1765,19 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id) case PCI_DEVICE_ID_INTEL_WELLSBURG_SMBUS_MS1: case PCI_DEVICE_ID_INTEL_WELLSBURG_SMBUS_MS2: priv->features |= FEATURE_IDF; - /* fall through */ + fallthrough; default: priv->features |= FEATURE_BLOCK_PROC; priv->features |= FEATURE_I2C_BLOCK_READ; priv->features |= FEATURE_IRQ; - /* fall through */ + fallthrough; case PCI_DEVICE_ID_INTEL_82801DB_3: priv->features |= FEATURE_SMBUS_PEC; priv->features |= FEATURE_BLOCK_BUFFER; - /* fall through */ + fallthrough; case PCI_DEVICE_ID_INTEL_82801CA_3: priv->features |= FEATURE_HOST_NOTIFY; - /* fall through */ + fallthrough; case PCI_DEVICE_ID_INTEL_82801BA_2: case PCI_DEVICE_ID_INTEL_82801AB_3: case PCI_DEVICE_ID_INTEL_82801AA_3: diff --git a/drivers/i2c/busses/i2c-viapro.c b/drivers/i2c/busses/i2c-viapro.c index 05aa92a3fbe0..970ccdcbb889 100644 --- a/drivers/i2c/busses/i2c-viapro.c +++ b/drivers/i2c/busses/i2c-viapro.c @@ -228,7 +228,7 @@ static s32 vt596_access(struct i2c_adapter *adap, u16 addr, goto exit_unsupported; if (read_write == I2C_SMBUS_READ) outb_p(data->block[0], SMBHSTDAT0); - /* Fall through */ + fallthrough; case I2C_SMBUS_BLOCK_DATA: outb_p(command, SMBHSTCMD); if (read_write == I2C_SMBUS_WRITE) { -- 2.27.0