Received: by 10.223.185.116 with SMTP id b49csp2527168wrg; Mon, 12 Feb 2018 11:00:44 -0800 (PST) X-Google-Smtp-Source: AH8x227Gd7zHtaYKjSSoBcpDNeZ3El3iKlN9WGT0Sh9xMVep8saUwBUxXvnd9nOAulcwa1dqer2h X-Received: by 10.98.73.157 with SMTP id r29mr12646957pfi.218.1518462044133; Mon, 12 Feb 2018 11:00:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518462044; cv=none; d=google.com; s=arc-20160816; b=x/ikVjua3A4/vCCi0PgNLfkVSuEZ1asXBHPq7WZkwkS65Kw8A+zIJF+z8kfk00gaBt 5Dk4RNpYBAgTTb6h6TJNZzmbJqhmyMoMpa1mR5raQpXohqoCbpdsBfnDpEoz2BzJ5Zc8 6kBwq+3XoZmK24WDTE81DQkwsmUn+uKrkiHcUU1ZgWS8t3IwU/3p1QDAscXnZeh7k42u lQ8Psaw9CHdAwmtBpv6cw4oG95Z+8Gy/P+fYjv3BW9TheoHJZrtaKy1Lp2VhNgxm22X4 DjbOlm2dkU7JRWJ3uVqrregByJaFHpaEfe8Tq88v89081qTxv243RE+dKvndjpT01okS OjwQ== 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=55YVXpzunpp4PPAw2S8ajG2f5YXm8xCcP3gIGGNLXgI=; b=C/tniCnkjkdk6gNtfBpgec4tptgfX4TUY0IyoM4i9OYGc3TD1uLBWHtGx7HPvyT2id uQRkRC3eaNQk0CidtsyLp6zPumitXD3Gnv+D4mjs1oRRR+39joSH2kI2oCVitLWI+MXZ Yt+WTm5NiQMg6WNqaRWp3+0zpoT5xGyM7gGL7uZSzLzEswTyNyGWTlJDGdozhfGREG2b XrZLp8lkB9gsV7TW2BLkKQ6Pcc/oNLQCQjHpOUNbKUd5taBY5ArGlRdeKWVmQwsybXaF A1jrVOrg5ihjGJEsiSar3uQx/K+bWVS3WqZBTCbgf7o2px3SZoZdpMgxotcc65V8s37j nu6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=kyTOKowT; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c6si2291370pgt.111.2018.02.12.11.00.29; Mon, 12 Feb 2018 11:00:44 -0800 (PST) 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=@oracle.com header.s=corp-2017-10-26 header.b=kyTOKowT; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753904AbeBLS7p (ORCPT + 99 others); Mon, 12 Feb 2018 13:59:45 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:53456 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753841AbeBLS7m (ORCPT ); Mon, 12 Feb 2018 13:59:42 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w1CIuvKs011160; Mon, 12 Feb 2018 18:59:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=55YVXpzunpp4PPAw2S8ajG2f5YXm8xCcP3gIGGNLXgI=; b=kyTOKowT0pZkX5XRxQSRhszq1BrCZpwu07l/Pr570ZPWIDTaNt1LkD1BZYavPfeaD9h9 TwBlB2CRcLHpstx3HvO77PHfismCAP91IICR2AvaXUDI3tLH/fdRiK7i8Z/2aaBr6Yny +11b5RY3HNMF1FEkuqR0UO1qA/A2gGlGm9qBkb+Y4+BnHvISMpgyOkc9a2GSggrYvxcb tKaglRn5FdTjnHFEn6IhV8E3Fa7yDmM/sLfSQ4m2NMI9EWmfjFYV4++uPPKnc8bsIMu+ jqte1G2jXnfXklRAJPwl4WdtnJv8PeRikwr0rS1119WXJ9/GRi1JrNtQpzm8bkOxIbE4 fg== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2g3gmn80mm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Feb 2018 18:59:11 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w1CEvgeh010524 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 12 Feb 2018 14:57:42 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w1CEvfr1004762; Mon, 12 Feb 2018 14:57:41 GMT Received: from mwanda (/197.254.35.146) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 12 Feb 2018 06:57:40 -0800 Date: Mon, 12 Feb 2018 17:57:31 +0300 From: Dan Carpenter To: Himanshu Jha Cc: devel@driverdev.osuosl.org, lars@metafoo.de, Michael.Hennerich@analog.com, linux-iio@vger.kernel.org, gregkh@linuxfoundation.org, 21cnbao@gmail.com, linux-kernel@vger.kernel.org, pmeerw@pmeerw.net, knaack.h@gmx.de, jic23@kernel.org Subject: Re: [PATCH 2/4] staging: iio: accel: Remove unnecessary comments and add suitable suffix Message-ID: <20180212145731.kws25sjinzqq6ax6@mwanda> References: <1518436499-8584-1-git-send-email-himanshujha199640@gmail.com> <1518436499-8584-3-git-send-email-himanshujha199640@gmail.com> <20180212125312.cjo76spuu6agjawc@mwanda> <20180212143522.GA12142@himanshu-Vostro-3559> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180212143522.GA12142@himanshu-Vostro-3559> User-Agent: NeoMutt/20170609 (1.8.3) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8803 signatures=668668 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=850 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802120243 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 12, 2018 at 08:05:22PM +0530, Himanshu Jha wrote: > But these should be done when we have *more* instances. > > For eg: > I added a tab space in function static int adis16201_read_raw() argument > to match open parentheses in this patch. But I also added tabs while > removing and adding suitable suffix to the macros. So, should it also be > done in a separate patch ? If you're changing a line of code and you fix a white space issue on that same line, then that's fine. If it's just in the same function, then do it in a separate patch. In other words, adding tabs when you're moving around macros is fine, but adding it to the arguments is unrelated. This patch was honestly pretty tricky to review. Jonathan assumes reviewers have the datasheet in front of them and I assume that that they don't. He's probably right... But especially comments like this: *val2 = 220000; /* 1.22 mV */ They seem really helpful to me. regards, dan carpenter