Received: by 10.192.165.156 with SMTP id m28csp2748912imm; Sun, 15 Apr 2018 08:11:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx49XIqaQkEazjKLcADy21+v/JdzHBkhSKMV3DpLIuDk7emq5bDl4+VncWzexCXLvI5w4z08J X-Received: by 2002:a17:902:680e:: with SMTP id h14-v6mr5973095plk.90.1523805103917; Sun, 15 Apr 2018 08:11:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523805103; cv=none; d=google.com; s=arc-20160816; b=zdaHaPG73rx7Px+Tgz0DpT3+Tyzkh8dksv2apwJzOvnEVPwAf2kr01ML5g+taw2bjQ n66+gnV97CZM8i/q/RoN2tf38tzrx4PpKnN6n0FUCttT1IR9Z/FWWLBi++IjTcnUEbvN Dlt0rbNc3NiUsfRQxOAk9R50jWLRraHMbPwgMlnCR2VlrXrn77vkXEEVhpD5ZXhnVu7R cuuf8cOBh6/9V0YNB5LZOS96mDHUK51KNheDf1PUrk+JhuxmFgN6SgWowOwK8mI3nlxq WHi4DMczkqpRcLMiOdBfylubi/WvQxrRbqyEpaa3bTLcppeo1DVIuYg9JJIhBhooa1x6 YINg== 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 :dmarc-filter:arc-authentication-results; bh=0Y5y669ZtdMmQh62orxzji3M5CPkLgD+tPYWnbhtvdU=; b=r/nKO1rm2+2rzMpsCJQBD6pq6P7VivF8Bj0d4Y0rhPQZLcYn0NgEmhn5/4ijeEPSw5 I9Pv4WdaP0LhITsjVLf+S3t5HG/FwF/eBZxlpsJ0z2xlnsawCw7gTW7OMngewKcZND/2 sjmOwtB/xC6B3ZM2MeeLBaxmhovRUY9v5BllDKpz/lqAA309dJAsRr5j1g9KmlJedeHZ riIVKv5zmlp3VkQSkrKklQ7H3BOA90+3A7wFWwurOytPn8O0/rKZFiqD7jE5m86Cfklj 1mf44hCcm790LW4tKXN2aWXz5swmHnkYhTPqF6JbVQ1pBlX70EB7JiJZbrBt8wRR6DGH MXAQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t12-v6si10368496plq.547.2018.04.15.08.11.30; Sun, 15 Apr 2018 08:11:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752690AbeDOPKO convert rfc822-to-8bit (ORCPT + 99 others); Sun, 15 Apr 2018 11:10:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:38710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752464AbeDOPKM (ORCPT ); Sun, 15 Apr 2018 11:10:12 -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 5AADB2077B; Sun, 15 Apr 2018 15:10:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5AADB2077B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jic23@kernel.org Date: Sun, 15 Apr 2018 16:10:07 +0100 From: Jonathan Cameron To: =?UTF-8?B?SGVybsOhbg==?= Gonzalez Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, Michael.Hennerich@analog.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 06/14] staging: iio: ad7746: Reorder variable declarations Message-ID: <20180415161007.1890e9f7@archlinux> In-Reply-To: <1523637411-8531-7-git-send-email-hernan@vanguardiasur.com.ar> References: <1523637411-8531-1-git-send-email-hernan@vanguardiasur.com.ar> <1523637411-8531-7-git-send-email-hernan@vanguardiasur.com.ar> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 13 Apr 2018 13:36:43 -0300 Hernán Gonzalez wrote: > Reorder some variable declarations in an inverse-pyramid scheme. > > Signed-off-by: Hernán Gonzalez Applied, Thanks, Jonathan > --- > drivers/staging/iio/cdc/ad7746.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c > index 9ef476a..f53612a 100644 > --- a/drivers/staging/iio/cdc/ad7746.c > +++ b/drivers/staging/iio/cdc/ad7746.c > @@ -220,8 +220,8 @@ static int ad7746_select_channel(struct iio_dev *indio_dev, > struct iio_chan_spec const *chan) > { > struct ad7746_chip_info *chip = iio_priv(indio_dev); > - int ret, delay, idx; > u8 vt_setup, cap_setup; > + int ret, delay, idx; > > switch (chan->type) { > case IIO_CAPACITANCE: > @@ -289,8 +289,8 @@ static inline ssize_t ad7746_start_calib(struct device *dev, > { > struct iio_dev *indio_dev = dev_to_iio_dev(dev); > struct ad7746_chip_info *chip = iio_priv(indio_dev); > - bool doit; > int ret, timeout = 10; > + bool doit; > > ret = strtobool(buf, &doit); > if (ret < 0) > @@ -680,8 +680,8 @@ static int ad7746_probe(struct i2c_client *client, > struct ad7746_platform_data *pdata = client->dev.platform_data; > struct ad7746_chip_info *chip; > struct iio_dev *indio_dev; > - int ret = 0; > unsigned char regval = 0; > + int ret = 0; > > indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*chip)); > if (!indio_dev)