Message ID | 20240909075257.34168-1-shenlichuan@vivo.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 543A1E6FE49 for <linux-arm-kernel@archiver.kernel.org>; Mon, 9 Sep 2024 07:54:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Message-Id:Date:Subject:Cc:To:From: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-Owner; bh=HgEZ1n457JwtWxaXkDVpEErtaF5nMevX7P/brRrrF4Y=; b=3Z8nFy/czaibO5VsrobP/WEZTr BJdZzajvQes9u8ZCADDqJ9N4YOgtSyEUpluXoW575J7CvCyA8Ygplw2+e8YoLI25yK33nuGoAgZ4Z I5OBVvAtoNrmEbEOk+gUR/gov8nlTWCCfFub0dWMp3aXa3mh1mf43JnjfiTnw71gCa7fQvh7RhWCT dipqvUhqK6JBBqqDG2K5+fmucDqv70tkzomrWhB4PY4Z/zNZwXoF38ww/FC7RJUYSBd6Up9lodsyB LJx3PlF+f/RRY77KtUyWhD3dHOfUVp8dFjr10x3npcyFSLFPpEzKhtubOXwYxoszllgS3mBXm6mld 0s2lEnZg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snZES-00000000vbK-2XQk; Mon, 09 Sep 2024 07:54:44 +0000 Received: from mail-psaapc01on20630.outbound.protection.outlook.com ([2a01:111:f400:feae::630] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snZDL-00000000v7B-1wAz for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 07:53:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=msh7+ezncache5L6BFB1ijzJ+7KLEe7DU/DzeNW9RII/grDvb9brtsFMtlqSm84XagBTzDDFjQMRJ4BoUrXC1b+Yi9v8s/03UZPkyWLIBc9DWIm8e+lmjYpYgZOHKHYtXRuNzUzsw23Dw0+wYvto5Gn2rJH5l4SU4KJQ49LvDMhdHzIfvHbH50g/hfL1Ebbd+P43oL8eGVvnAS1Vg/l5j4mOa4WgiFXAiyl4osi/WgzGn5xgJeqAnh1+xyWNn1xL5jy7A406lyhwsM/dkdjLIdH+bv2z7E7X+YxzMqAtgt5q4XLkbk9OFzH3ikCGrOgA1fH7quKEpIJRzVMZMeJMbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HgEZ1n457JwtWxaXkDVpEErtaF5nMevX7P/brRrrF4Y=; b=HHtYOrOOTLLxsvikCJwIieYK72fXXNVS2ZcMyqqZbq9HWG3iT3HCAnHE28EAWbfeTvrH+ec7+AEFmDbMGVXya2zynOceP9LlnPyHcFLXh592Qeb0IBMj0FE48kC2goTR9+odkj31+LfRtuaICnvXFkHo0XJiLhr6In63rZEO1MOjbmhWCPGoJWf4ale6qTqrzq6BMadQ6Ym6S3qFasw3gmuNXDhgR/9kRaWsYJV9wEpVwoicUPBe5bbwQd6uynXP/4sa78738qqL32gM9KZqD61apEiBJbvaYdNK+sMcdNM7PUWJs5kh/vqdPpHSWM0rrjxPAzk0e4URjBl3URrGbA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HgEZ1n457JwtWxaXkDVpEErtaF5nMevX7P/brRrrF4Y=; b=devpg4D7cvGwM1okmKQTEzNuIwPs4JdAh0dOpA5XGcLx/7DxhYdGLZLp/8WX8vsFqCQwZ3XY0Po+PvxeDCypRGw/4JuzJr+tfVBxeXXmW7UqLy+GB4DJ8Mx/B4JbksuQPgugRZqvBfzkMhpU3WNsZqxsBYeLsqfkhBu+BTAHWDYSccGGRjnNHmIdpMn5/myby2lxqJIPkS2yc5PhJOnW+7Rb1GdYdXdIN9wzCswZNI/vKP7rt/0Fwx4axWky2Nvvsp7YT2BEVJ9qVJfV7oRcDaYkQUi+S6uXqvSdL5C/1AnCcT0rG+PXa6Ne5ChPCRqqA1vHB58Muuyh4Lf0L6ptuw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5899.apcprd06.prod.outlook.com (2603:1096:101:e3::16) by SEZPR06MB5624.apcprd06.prod.outlook.com (2603:1096:101:c8::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.23; Mon, 9 Sep 2024 07:53:19 +0000 Received: from SEZPR06MB5899.apcprd06.prod.outlook.com ([fe80::8bfc:f1ee:8923:77ce]) by SEZPR06MB5899.apcprd06.prod.outlook.com ([fe80::8bfc:f1ee:8923:77ce%3]) with mapi id 15.20.7918.024; Mon, 9 Sep 2024 07:53:19 +0000 From: Shen Lichuan <shenlichuan@vivo.com> To: o.rempel@pengutronix.de, andi.shyti@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-i2c@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, opensource.kernel@vivo.com, Shen Lichuan <shenlichuan@vivo.com> Subject: [PATCH v1] i2c: imx: Convert comma to semicolon Date: Mon, 9 Sep 2024 15:52:57 +0800 Message-Id: <20240909075257.34168-1-shenlichuan@vivo.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0046.apcprd02.prod.outlook.com (2603:1096:4:1f5::14) To SEZPR06MB5899.apcprd06.prod.outlook.com (2603:1096:101:e3::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5899:EE_|SEZPR06MB5624:EE_ X-MS-Office365-Filtering-Correlation-Id: 8602d45a-5289-4c8e-b2ff-08dcd0a47843 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: 464xgK+lTeaNyZsA5rAXDrxg371sJBLaZyPgFYIU/UGI8Nfvv/tHeILYeWjSjbY6M8xcK7PFEk/Auyzynl+bbb3Al1y9FaC1COAH6FzebsDLdk2j1vHilNEfYARZUn6eYxUtPH8YWzKxM6r1Y+pVYCVtNKhkW/nktvI3+bVz2eulsxcgGyxxO/+n2xvuvl7wucpv5U+pvdmGV5Sl4C34A+NoZ7jg3Q7Pr7KECM2dKARpWMTB8CUshJVe7YIOlxgoYSZrX73ypspmI7/JGJgIq7eU6Km1/u2mh8brHYkPQRwkkWO/g5dz1rTI0OtCqFetYcwhYLGtefnQ7aPXwCNbe+geXgOZL9t28BAO8TzAabZKLvZmeXc+WJys15G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:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5899.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +GGrJ10uy8I9bUqRddu7f1izS+31ttuufdbSkmsg9f/LhQXa3Et51BLDdLPkzImKFo6ykAueFb2WWNlQaMkfSfYIscof5upMFtsuOZANcinw41rOwVziVnvOyBCXFpBvFwXlVngTZ5uf76iIjpSB21NFmaEHskeB4JfjstH0ycZHz77/y0xUunyHncj9Kfc6RV4UR9upjS3aGueIEZjwI2WKq6JmvT7e+KIOixdEyn7WgmYgDVxVQbSe2R36CBZqsTj/3jYpYf77YN02mu7JMGosq67zsRvCbYesniVBNn54Nl0kxc2CqxOlEAqxBai8VXyf/JSnQIqH1d/Yv93iNbe6BUDqMafKUXV1Mk8ecMb9l5cKDrC5CfHY4lP1cnbyLawRpU4tPZJoV5Fmyn9RrATDJgUR763Gnz6bzsP/Io+e8PsLRGBYUfKPvnmTmZSjV5YitmcXQIp1amr/6jy5AKZ+NhA5uA/2o/ln4WwMoDmGMWB4I7dB5r/qdNcZuDNxZXkwFjZRgvml2JIObTMMDOPNKTamMYtHiyLH7uF7TjJQWCOPQrzUUW7r5YQ/rLWdAL8RZwyPIA2xbOgdFTzYyJi8+Dn7hUEhpCwFHSOIG/ya542vz/RMF7DnZKDtYjW0x8N+T3b1WLKlYe1LJJs4VcBxAgFMwbB4Sbyod6J0AmeEOidEdjR6oaTIrc1GkCNsCnAGkW/RSEgiyht+XUmv+u3xNJaS3Wa76KDxGoKwAfG7/O2DKQh+btxTbNhxljnLEPeeU1gruGy23UMbWVKtnPmGO+9LNLFIw9z6IkxA22FiIsIPX5MI2UbIIL4rl7sjRz0K+x2TtJnPgPrJQ957P7S1qkfRSvVUyZC13M3546455wAqbHrZnPTvKXLv+Y+lxQAtKd2I9Bkoym57bsa2qk2n7kolNbus7qdPe3M8wDGmUkhncB4H+lGhC3m+gkw7CVi8p6cyJ4N+KsSfzuDok3B9o3IAJs0QU6ifxmQrFgaXRZWJRyXl2CRrHRMwC4bDcaPA5GxAmPibo6xE4lUVXBU6ul/42gUf/NgqgO2jWJ1aKnU8psnUzepIie30e3h8adps8UOxdtUACmhqFzyV6Z0NVZzS0nRepA+sfDI0C1v8wfmLfvw5v8xFQGpMG08EWyZDnPeBu2cA9+tlyERLIX3L8VnIm2jfi4o038p8BU7wG11ssZUt2+F9UeoisTQVTfgSlZfIemXeahb8wtDB4wEGr8b1D3utnsHP79pwa/A8gTsu/ZfdgzmMtMYLFPpjfToR62+wowH/zZJLq/6CEkRKsxHf2b8eK6CfE/KpAP46B7snJB6z8XB9Lvh9afTotfZ9g4K7Ui0SF9/GuK6zJIl7ISJUYvIgrdO2f17LZSmcVwhx0uJsEV62UD4TbVqFumBOQG8ai7Otldw5nIDKwfcqQohyL+8OeNTUQlz/PkOQEqAEUHy38kOanlCa2a4Y3rGOm5KVdeFdABAiQnTCworNypfrxE/0fQG0Wx+OAr7JOZKFIpfhcv03aQt6BuNQyeqD9BvW/sx/tQEh1HS0/EthKQ07BJgbMXTAdQdnP3MRQKEH/keP/Bt8LR2HdPfm X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8602d45a-5289-4c8e-b2ff-08dcd0a47843 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5899.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2024 07:53:19.3478 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6qoeiLngD/wbXbjDsjMW2bjuUnno8srwH61hhi3CLi5+pWpu/586XLcIljoct4IwpZwxFSIRd332iyI0W0TFvQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5624 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_005335_516866_4C83EE6E X-CRM114-Status: UNSURE ( 9.49 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[v1] i2c: imx: Convert comma to semicolon
|
expand
|
Hi Shen, > @@ -687,7 +687,7 @@ static void i2c_imx_stop(struct imx_i2c_struct *i2c_imx, bool atomic) > i2c_imx_bus_busy(i2c_imx, 0, atomic); > > /* Disable I2C controller */ > - temp = i2c_imx->hwdata->i2cr_ien_opcode ^ I2CR_IEN, > + temp = i2c_imx->hwdata->i2cr_ien_opcode ^ I2CR_IEN; yeah... pretty ugly! Thanks for the cleanup, merged to i2c/i2c-host. Andi
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index d68b575e5d18..98539313cbc9 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c @@ -687,7 +687,7 @@ static void i2c_imx_stop(struct imx_i2c_struct *i2c_imx, bool atomic) i2c_imx_bus_busy(i2c_imx, 0, atomic); /* Disable I2C controller */ - temp = i2c_imx->hwdata->i2cr_ien_opcode ^ I2CR_IEN, + temp = i2c_imx->hwdata->i2cr_ien_opcode ^ I2CR_IEN; imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); }
To ensure code clarity and prevent potential errors, it's advisable to employ the ';' as a statement separator, except when ',' are intentionally used for specific purposes. Signed-off-by: Shen Lichuan <shenlichuan@vivo.com> --- drivers/i2c/busses/i2c-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)