Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2815129imm; Sun, 7 Oct 2018 12:26:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV619hka7v7O+lMF76UgrAYo47RTDRpd0nS7b4qkWz0Y3EJ38GNRIbBRngzYXqxm9dInhmNbX X-Received: by 2002:a63:7e1c:: with SMTP id z28-v6mr18494099pgc.190.1538940361578; Sun, 07 Oct 2018 12:26:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538940361; cv=none; d=google.com; s=arc-20160816; b=Rxbe8xL3BpZRP6MCaaUREze8eXX2GX21xKQVwxV0afVuG53yj73cJlZggNRvCpyia6 P5O3MiXVYpzEqAqg0TWVE5chbTTdHJb3WjDmFxeYIRjmyiVPwwdMbidULSUqSqpqnd9A z0v6d5HNIIC9MDWSPFJ2TsDziNwkQ9eggPE4QlyjsffxBYiDEhwwz+XqoME3/puXO8Rm NgGd7y4sU0kpg2EWrWOdLSVe/oiiszw3zugdLhH03oSD2dfOSHUB3xTb4mMKnPWAFyxh tRbXih7sH3WZSuaeAdob4FPovS+AHquKMhAY58EpJTtN0rjZDyaYYNbY/Ed7aNltI0Xo y3aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=NQP4m660ZvfjWRVhYfbi1lrHBwaCFZSBdWf1jmYAWdI=; b=QhxHwievZe+snnuFoo/6nBnGHIzmTMvD4DQOPYcW3Mej4AJ/PI/LeGaA6dYggUSluP ghAKHap3Z5SxaPHyG20yjwJf5NP2hiR2lzbCAhMvlZk28BLvWsSxw9p6tHWJgmDNfoB4 gaIDmmzkgjDkT92sDMXl3d3Bjo1cS7BMF8Ig+bTKbRbkij8NGIQKgl5w5jFB/6et3SPv W6/98xm4wlUxmMVBzvjUHLPCG1EVjyXtqKwOXWMxoA0f/alxwb8u+nd+TdxDtRj7gJnJ ZOQgKsZyGYw9BGHNcizOIVzbCVvQT49aFHP0VR8QoMbrCPujxqAtp2KqhG4NqYL9QQt8 zVXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tMi0f4K4; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1-v6si15600742plo.165.2018.10.07.12.25.16; Sun, 07 Oct 2018 12:26:01 -0700 (PDT) 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=@kernel.org header.s=default header.b=tMi0f4K4; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728479AbeJHCcV (ORCPT + 99 others); Sun, 7 Oct 2018 22:32:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:57610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726976AbeJHCcV (ORCPT ); Sun, 7 Oct 2018 22:32:21 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (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 BABC02087D; Sun, 7 Oct 2018 19:24:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1538940243; bh=kN4KxvOFXwjzozgQthP6vVXIpGfSvPT8SvdtXG8VUTY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tMi0f4K4qmiDkxiouhG1P2rIGzS08lC7Cdko/P/RvqgW7n7q2/fQE7yU3GCqH1Ypb /sakuKnAsVSFT7kBG88y2GzP6IJk8x59IOmzXUd4y7KEvY384HxjntQNC+6G9aorcz FFLTVTn8m6ktVwkhaWT3wOKKtayg/4aGucXuWwLs= Date: Sun, 7 Oct 2018 20:23:58 +0100 From: Jonathan Cameron To: Renato Lui Geh Cc: lars@metafoo.de, michael.hennerich@analog.com, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, sonic.zhang@analog.com, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: iio: adt7316: fix parenthesis alignment Message-ID: <20181007202358.53ed37e8@archlinux> In-Reply-To: <20181004230651.wcqz4fp2cycyrq6t@renatolg> References: <20181004230651.wcqz4fp2cycyrq6t@renatolg> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 4 Oct 2018 20:06:55 -0300 Renato Lui Geh wrote: > This patch fixes all "Alignment should match open parenthesis" check > warnings found by checkpatch.pl in the addac/adt7316 driver. > > Signed-off-by: Renato Lui Geh Hi, Mostly good, but alignment doesn't override other considerations such as consistency in argument naming. Thanks, Jonathan > --- > drivers/staging/iio/addac/adt7316.c | 462 ++++++++++++++-------------- > drivers/staging/iio/addac/adt7316.h | 2 +- > 2 files changed, 233 insertions(+), 231 deletions(-) > ... > @@ -1363,9 +1365,9 @@ static ssize_t adt7316_show_in_analog_temp_offset(struct device *dev, > } > > static ssize_t adt7316_store_in_analog_temp_offset(struct device *dev, > - struct device_attribute *attr, > - const char *buf, > - size_t len) > + struct device_attribute *att, I wasn't expecting to see a rename in here. I know it's not a big thing as the parameter isn't even used, but it is better to have consistency of naming than a minor improvement in alignment. > + const char *buf, > + size_t len) > { > > static ssize_t adt7316_store_ex_analog_temp_offset(struct device *dev, > - struct device_attribute *attr, > - const char *buf, > - size_t len) > + struct device_attribute *att, Same here... > + const char *buf, > + size_t len) > { > struct iio_dev *dev_info = dev_to_iio_dev(dev); > struct adt7316_chip_info *chip = iio_priv(dev_info); ...