Received: by 10.223.185.116 with SMTP id b49csp2570753wrg; Mon, 12 Feb 2018 11:48:39 -0800 (PST) X-Google-Smtp-Source: AH8x227RYUfDTCeUNfcmJ2t1V5grprz+luxjxa5HUp9O1/xk+j9yQ3BD/vgJF2hKxSxH55+OUECC X-Received: by 2002:a17:902:b189:: with SMTP id s9-v6mr11574798plr.243.1518464919872; Mon, 12 Feb 2018 11:48:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518464919; cv=none; d=google.com; s=arc-20160816; b=xDDrXCYM2PgscBJa3SOcIi6lykqchVQrAzKHgm1YxzFPI2F2XEEIwy7l8ln+2GAmK3 t3+KOq6SZlt+/QvBBuRBf9bcCs352oCp9OlMuo6IP1T5uA+eOZrdNMo5+qaoAJUStKU0 aFS58KKfbcN80BPvLxnCroCtJWOb+ct8lK0zq0euaoaAv8cyMYljeNaABVr97af3q0Tv HPVWCBIlXovwVVHDvDQcMQWSbF6znQIxzWnbjap0YzNMZ7sTlcjw3MQ1sCKC5uqfsx0Z ageGLfJFg6zjxMR/sFDoMv5JjyEnFmxDHdbhAutOVtLDfN9q9i5rlcmJhfC8M+DzEc8C H9HQ== 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=SgtKXgRW56S4rtlQbtJIKdxiueCFEfYqgehtfbRsVow=; b=PBIYb8KwmT5ltH0A4MFAVndPlPjddCOKap8GkSD9GHif+vRlH49WKnO8Z27k7tPraz uERnq95RALMPukTxBQFlltUEtOUjbtpQ+K2aWzIe1dgpaAhqBehA5jVlkAx0b4GLFuzE 49qxeLo4akbKbQTJ/3sEyg9kTRs6wM+ehGL2dH1QL/9cAKZKd+F9ZmWqLDAkWTqwAikE QMoosnnqTJHJV4aDkvymuweWHBK84C6t3xxFM0DCbUjKZdMCr5EGXo8sK7ENxW3AOd+u bY5tzJAaOr4mnFJ4E6UZkj4bfUeJ3VPDfCqkHwWcjHluGNxYC/x2qhy3B/fP3HfE32Mi qpqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ESLGzL/T; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x81si298586pgx.402.2018.02.12.11.48.25; Mon, 12 Feb 2018 11:48:39 -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=@gmail.com header.s=20161025 header.b=ESLGzL/T; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751988AbeBLTqX (ORCPT + 99 others); Mon, 12 Feb 2018 14:46:23 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:41258 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750953AbeBLTqV (ORCPT ); Mon, 12 Feb 2018 14:46:21 -0500 Received: by mail-pg0-f68.google.com with SMTP id t4so7123033pgp.8; Mon, 12 Feb 2018 11:46:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=SgtKXgRW56S4rtlQbtJIKdxiueCFEfYqgehtfbRsVow=; b=ESLGzL/TPy+OR8PK0x+qsxFs5Rn9v1Vjg9KGPK2vSeoYS7EYTRsbXLPUMgGIGIEPoI SG/e4gQaEwYEIGbyI/UoLByd422HhcUbDSxvDj1Gx33wDUm4Ddd0QXXrpb6BHMBT7Jv6 fgKKEABOJPLVlK7OPq6GO9Cx4pH5VNLYHVSrpWmVqAaNCJdjW4rm7uimxBHQQj04WTyd NGCZ4zowPJeSvzAjg0W8MrXUHB2J6wvKSCBAs110A9KtDakuU85SXFQxpI6BjQ6+EYKn BbNFfu7yl5n3emgxwG6NKBfslvEiwKepB5K58xJZd6XSLtMqMzTfi5D8s/uJ8wTB2f9g Ne+A== 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=SgtKXgRW56S4rtlQbtJIKdxiueCFEfYqgehtfbRsVow=; b=el2kJwtacFI/ZnJFIV9mjXrspPLrn7aWdeMNQ2yu8zFhindajcBwkUMxsOsU1o+NZ7 bTpWmGOoDk6DeFAOtf8L0fhzHrGavLSsbbUEbFTTtLEaMC1riWlRq65lk7bRGywg/R67 +IYl/dgnkTqMSM7lctFwt1Ez1fiHIzucZBR1lKpqS6XT4Y5FTAc2rRLGhTFCaET6ITN6 4lrDYFP5sUjOLVrKU8fHP+PhtdPXzvYOg5I1qolwOxkBteGjkVIpMzIPBDfnZc9qepZn QiriQyaZnt2IIVNp4Z8PAoMy+DzChPMsBlmNw5M8h3oKaq6DFuwOoRfeii5mBMCJWcIB sWZw== X-Gm-Message-State: APf1xPCUMZfj0LxfcsKv6ibzOSTY+rUBCG9bD8/liNbQRs0yCzkmMlA6 huPlPoAziZk18w6neeqP2BM= X-Received: by 10.98.198.1 with SMTP id m1mr12464179pfg.90.1518464779995; Mon, 12 Feb 2018 11:46:19 -0800 (PST) Received: from himanshu-Vostro-3559 ([103.46.193.14]) by smtp.gmail.com with ESMTPSA id j125sm24179071pgc.29.2018.02.12.11.46.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Feb 2018 11:46:19 -0800 (PST) Date: Tue, 13 Feb 2018 01:16:05 +0530 From: Himanshu Jha To: Dan Carpenter 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: <20180212194604.GB15335@himanshu-Vostro-3559> 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> <20180212145731.kws25sjinzqq6ax6@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180212145731.kws25sjinzqq6ax6@mwanda> User-Agent: Mutt/1.5.24 (2015-08-30) 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 05:57:31PM +0300, Dan Carpenter wrote: > 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. I will try and divide my patches next time :) > This patch was honestly pretty tricky to review. I am sorry for that. Might be easy for IIO reviewers ;) > 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 are pretty obvious as you can see from the return statements just below that which is : return IIO_VAL_INT_PLUS_MICRO; These comments are obvious because we know 'val1' will be responsible for Integer part(1.0) and 'val2' for the Micro part(220000 * 10^-6 = 0.22). Isn't it ? Although I am new to IIO please correct if I'm wrong. -- Thanks Himanshu Jha