Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2761418pxj; Mon, 31 May 2021 10:05:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyn1eBJ+9k/dTdZhCQmL/+iB2nzqcf/Xas6kZcXuxpufapdIZiA66npKeBVixcABzt3rfSG X-Received: by 2002:a17:906:7c4:: with SMTP id m4mr23493660ejc.479.1622480712917; Mon, 31 May 2021 10:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622480712; cv=none; d=google.com; s=arc-20160816; b=WgOHOP1TKG9OixLaLHcXRzA2twixSzep+dkt+ueEIWBgJyanVdqArbiXnH1AchQWpI rHiMfONv0djdrNKi/p9SqnXCu5Vv/M/lx3mAD0V+e/HyruvoJFBPebYa//Cow9JFyGVR fL56aMEdt5WMLZIsEMmKRCXT51Gyxn3sSp0pJRUrg4JCBj+VmyYrVwv1ZQxbfPT1COm2 /48t9IXVlNmtRp9j1RzebW/fJLvEJuJTb8Gy9t3DI0muQXo6id/hv324mYTysVFfn3Lz 6ryD0RyCV08zmyRZjpRSECpFcrrlqNYs9HEmIsC/L5kl1vtHZibP7PNn/6NsSwMOMwaV 4FPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=xNlKZs5Jo3aFFlVDzi+S0IRxOg8yF7Im22aGAHX0klw=; b=oglSPmMBIbTy6EWJ6Ciu3eGtn92nFd91UTkBPzzf85NXX8w/7kmk3KGYV6ktgIayqY tUr4t1+i9ODFnghFE64Mox5m2kT7NqjUpZgkoM7PsPcpilIrGFgaiq8Sa4wX5Czq1K5Z MdISTwYXKRI4LPGMOD2fhj4cHHdXCfV92mxxd9jQe/gkYATB7bTqgb1mFVvWUBPPeQ0r Y0Flp7hQ4zmNOsay9jH0G/LM8usgt3jTbjXX42lM/cm0jir3737nmnJxfAyp9F0Cmgun Spmuak4iOmvLMIt83oL+VAN0rqNdhEeehmrKR0+FEWVen6ytKY5l/s9jx98MNhuU/nH0 O01A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kl25si12935480ejc.370.2021.05.31.10.04.50; Mon, 31 May 2021 10:05:12 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233780AbhEaRDA (ORCPT + 99 others); Mon, 31 May 2021 13:03:00 -0400 Received: from smtprelay0024.hostedemail.com ([216.40.44.24]:51470 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231845AbhEaPvJ (ORCPT ); Mon, 31 May 2021 11:51:09 -0400 Received: from omf07.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 6242E1822186F; Mon, 31 May 2021 15:49:24 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf07.hostedemail.com (Postfix) with ESMTPA id 49EC5315D79; Mon, 31 May 2021 15:49:23 +0000 (UTC) Message-ID: <4f439c33c8f09da9f0fe44e8eebd98286c3e1e3e.camel@perches.com> Subject: Re: [PATCH 03/10] i2c: xiic: Fix coding style issues From: Joe Perches To: Raviteja Narayanam , linux-i2c@vger.kernel.org, michal.simek@xilinx.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, git@xilinx.com, marex@denx.de Date: Mon, 31 May 2021 08:49:22 -0700 In-Reply-To: <20210531131948.19477-4-raviteja.narayanam@xilinx.com> References: <20210531131948.19477-1-raviteja.narayanam@xilinx.com> <20210531131948.19477-4-raviteja.narayanam@xilinx.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.10 X-Rspamd-Server: rspamout05 X-Rspamd-Queue-Id: 49EC5315D79 X-Stat-Signature: w94xhhawad55pwuiot6k8qyufdna9ikt X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX195e7L0MdWo55+YrZXpA8kMRysCT477u90= X-HE-Tag: 1622476163-449368 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2021-05-31 at 07:19 -0600, Raviteja Narayanam wrote: > From: Michal Simek > > Most of these stuff are reported by checkpatch. trivia: > diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c [] > @@ -519,8 +522,8 @@ static irqreturn_t xiic_process(int irq, void *dev_id) > ? > > ? /* Service requesting interrupt */ > ? if ((pend & XIIC_INTR_ARB_LOST_MASK) || > - ((pend & XIIC_INTR_TX_ERROR_MASK) && > - !(pend & XIIC_INTR_RX_FULL_MASK))) { > + ((pend & XIIC_INTR_TX_ERROR_MASK) && > + !(pend & XIIC_INTR_RX_FULL_MASK))) { This last line would more commonly be indented one more space to align to the appropriate open parenthesis depth. tab then 4 spaces for ((pend & XIIC_INTR_TX_ERROR_MASK) && tab then 5 spaces for !(pend & XIIC_INTR_RX_FULL_MASK))) {