Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2472308img; Sun, 24 Mar 2019 09:36:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCWnRWJXZwicuSEThSC3S10EPInzohSMoLS6Sk7hltuRuJZFFk7jCkV4kATpweSn9Kh0ms X-Received: by 2002:a17:902:7786:: with SMTP id o6mr20496400pll.206.1553445379695; Sun, 24 Mar 2019 09:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553445379; cv=none; d=google.com; s=arc-20160816; b=wEZ5BxxZHqDUmznaTLavwpIa8nWLUacPzaE9RaBW0JkWueIanndv7LmRjsVB+4iNQD bZrnl/bhuMA2lMGsBa9wij23h2QEeIAOQlw04CS+pvnlvjioM3dYm7uwIXoG8qrO+dSV 1J9eFmvdW/gemoTbUJEcNCfJ9zABYp34KGKDEne2pSFh7XDUyF8TbBe7CXJcS0QlYmMv Y42xprtuErt9qIpoaL+iz0wMYeGvm7jBL2sap8xC4qnZSW7FtmceHgjWgEBGpxv153CN kaU/bWKNkx8wBLSSQxktS9hmTVjPNWvqGtnNJu53wEkVVI+7DIF1r9pETK6YrPA98I8L 1ZxA== 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; bh=fuo3OdaP9Fj8q0H/hp1yvVXCACMOULY+ZkpOchTeiW8=; b=pQIiqnFUCw24zS6GKlw/HaZTRO5dPh60z3gxTH7jzHZa3SYoaA5HLb4zK5RYF5xigT rL7P99i1JeoylrZwJrEIgAoS/ulIdZMkiUAfEOmmLXoa0fTu4U+AG4k5kKn8xeRotMPQ 0T46KI1WO5X4zNN6HsUnq+7e8+AaGhk1uhx2smAKIr95uaW5LyAqn/2daVmKiRAnrNoK W1xlLSwVcvcrZY29pcE0YUaGCNYSRtW/WZPbxXHrCz2CbzMLj77KlK4nKHkvd1AzOtFC lNAFz0nAu8ww0RiJpZtCzyCI6MG6+naQRkIcBi5NqcYw90m8CwxJFm126YGbAqwBjte7 /S5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PHerTSJL; 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 x22si12032120plr.111.2019.03.24.09.36.04; Sun, 24 Mar 2019 09:36:19 -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=@gmail.com header.s=20161025 header.b=PHerTSJL; 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 S1728839AbfCXQeR (ORCPT + 99 others); Sun, 24 Mar 2019 12:34:17 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:53633 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbfCXQeQ (ORCPT ); Sun, 24 Mar 2019 12:34:16 -0400 Received: by mail-wm1-f67.google.com with SMTP id q16so6508958wmj.3; Sun, 24 Mar 2019 09:34:15 -0700 (PDT) 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=fuo3OdaP9Fj8q0H/hp1yvVXCACMOULY+ZkpOchTeiW8=; b=PHerTSJLaoOF8YlfqSKG+mHCbf+rd19ftABT4xpRsG0np0Vf5q8nkJmcCN5fNcPHqz I0hISWn35P83AdnSXTe2Ga9cM+/q/b+x2bAJ7V0fguSRxyI1h6CLkMp5X15anSpTdINY qcYwqri8bbB+fUuELJO0eM+K8J1kpuO4y6XfgPHeuD59Ql3sdbYhvaXzGve5Yjlr2b0h 0KzpAEvG4E6IYRJhpmRO3q3EwBIOn4ugfUnD+xn74JEsH5vcf9H8TxHszfQVHFNl2VZL J5BkctfMGLn6ElX1HPltBSleUS+vIMaBOnLEuX7UFQ9GoVBn2UqehGJ3OgGRzzYhKEmt 3gzQ== 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=fuo3OdaP9Fj8q0H/hp1yvVXCACMOULY+ZkpOchTeiW8=; b=TsLjq08Jc3qy3LpM1fiUUgGAGJ2+zDxdQp4kqP9+0wB/fP/R0N8SQaohrawdBRaMmS kgcieoUxXG3ED8X0tjSbGOim6HD8O+mb3D3iJzm0RhNBvF4gJW1qTqAWqyBbwLukTZC6 TGg5hPRvaZgXVloVj0Uk1Cuf33HPioCjMjEGkFoeutEvmMsOmZLuccTjSql7S6Nz2AEV kBYa+8SAExnRyiOq/yqRcb65LtSsLX0xozo24TBurVh44XYSBLUfwvtmTxzwOuXo86H1 iB9cDvbpQOo1O2mymt5OZInZGPUqRHdn2NiciZrhATN3vhtunTGtyJ2bTE7CLb3r/YzZ ckKw== X-Gm-Message-State: APjAAAWjl6bn72KXf+vhxa8OgNIn0tWZtqIXfv3IoqlrdodFh1Zye+Zg x7eXJEurODRXeO/JD9hpRrE= X-Received: by 2002:a1c:9694:: with SMTP id y142mr8710696wmd.98.1553445254620; Sun, 24 Mar 2019 09:34:14 -0700 (PDT) Received: from peano ([87.19.116.42]) by smtp.gmail.com with ESMTPSA id y5sm11873722wrw.23.2019.03.24.09.34.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Mar 2019 09:34:14 -0700 (PDT) Date: Sun, 24 Mar 2019 17:34:12 +0100 From: Cristian Sicilia To: Jonathan Cameron Cc: Lars-Peter Clausen , Michael Hennerich , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/5] staging: iio: adc: Tab alignment Message-ID: <20190324163412.GB791@peano> References: <70101e0eaa253140218d833223e0862d8851c01d.1553366098.git.sicilia.cristian@gmail.com> <20190324123552.4b4ad025@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190324123552.4b4ad025@archlinux> 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 Sun, Mar 24, 2019 at 12:35:52PM +0000, Jonathan Cameron wrote: > On Sat, 23 Mar 2019 20:21:36 +0100 > Cristian Sicilia wrote: > > > Aligned some parameters. > > > > Signed-off-by: Cristian Sicilia > > --- > > drivers/staging/iio/adc/ad7280a.c | 36 ++++++++++++++++++------------------ > > 1 file changed, 18 insertions(+), 18 deletions(-) > > > > diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c > > index d9df126..55b5879 100644 > > --- a/drivers/staging/iio/adc/ad7280a.c > > +++ b/drivers/staging/iio/adc/ad7280a.c > > @@ -830,30 +830,30 @@ static irqreturn_t ad7280_event_handler(int irq, void *private) > > } > > > > static IIO_DEVICE_ATTR_NAMED(in_thresh_low_value, > > - in_voltage-voltage_thresh_low_value, > > - 0644, > > - ad7280_read_channel_config, > > - ad7280_write_channel_config, > > - AD7280A_CELL_UNDERVOLTAGE); > > + in_voltage - voltage_thresh_low_value, > Firstly, that isn't in your description and secondly you just > broke the userspace ABI. Take a very good look at what is happening here. Yes sorry, it will badly stringify, I fix it > > > + 0644, > > + ad7280_read_channel_config, > > + ad7280_write_channel_config, > > + AD7280A_CELL_UNDERVOLTAGE); > > > > static IIO_DEVICE_ATTR_NAMED(in_thresh_high_value, > > - in_voltage-voltage_thresh_high_value, > > - 0644, > > - ad7280_read_channel_config, > > - ad7280_write_channel_config, > > - AD7280A_CELL_OVERVOLTAGE); > > + in_voltage - voltage_thresh_high_value, > > + 0644, > > + ad7280_read_channel_config, > > + ad7280_write_channel_config, > > + AD7280A_CELL_OVERVOLTAGE); > > > > static IIO_DEVICE_ATTR(in_temp_thresh_low_value, > > - 0644, > > - ad7280_read_channel_config, > > - ad7280_write_channel_config, > > - AD7280A_AUX_ADC_UNDERVOLTAGE); > > + 0644, > > + ad7280_read_channel_config, > > + ad7280_write_channel_config, > > + AD7280A_AUX_ADC_UNDERVOLTAGE); > > > > static IIO_DEVICE_ATTR(in_temp_thresh_high_value, > > - 0644, > > - ad7280_read_channel_config, > > - ad7280_write_channel_config, > > - AD7280A_AUX_ADC_OVERVOLTAGE); > > + 0644, > > + ad7280_read_channel_config, > > + ad7280_write_channel_config, > > + AD7280A_AUX_ADC_OVERVOLTAGE); > > > > static struct attribute *ad7280_event_attributes[] = { > > &iio_dev_attr_in_thresh_low_value.dev_attr.attr, >