Received: by 10.192.165.156 with SMTP id m28csp897436imm; Fri, 13 Apr 2018 09:40:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx48Y0Wi9/J12m5AeDm3bpiwiCO53MDl61nEAUpsP26MbH8SdIQ2ohWhDcD6BHvrsx7Lp7u57 X-Received: by 2002:a17:902:41:: with SMTP id 59-v6mr5880141pla.248.1523637602461; Fri, 13 Apr 2018 09:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523637602; cv=none; d=google.com; s=arc-20160816; b=oHG5qF4Q7AH+ei00nqHwiSIuCfLC8/9LmUp75RWPgndzsGbhTSfS5mSjZrugSoqaoT 9ctxiLxntwxuOcdckNELQB9id1rJoeMRLVPa4Zlneigygu4eWR6/y3yEv+55883eEXh5 J34ebOXYfE7Qfi85A5ik8YeATXXsOKAU+CClHp68CwLFkaXtD6dZq+RRWYCopgRntEkJ PlDggTUpnO43AGwmo82U+YDNjstLMZBuavvQgrmMWvcYyuuoOAk15hccJkkm1JoByhoh 8GiqFBbhR5fPnRgFXK/JinnGvzPAh0NDaPCKTJf+mZ/ZPBqFbmnuBhyFl7iBLof+T/YG pcTA== 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:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=eCgSdFgwB255m0N9UHOWkjZkqY+jO5YLR8ayCqttdPc=; b=glTZHECZP4LLzl6f/JW/RkVQVppe1Vu1ZD6jjm8MeofX717g6zgCGYx6QXykZtm/6Y P48rUOOAJ4qaXK7bq+m+VxlbJU1Ekoz1JxiudTMR45eDaDDB8Eiu1nSWdP2ibjSHm5uX GgRlzm4wd1UUUDPwZCagMs7V3hVkf2BxJf3L+dmh4B+BpddyPzD5LBSc3r1cE8wAXoQi ydDd1+Xw8PNoEIAS6/kgH2wOLD1dC0EAgWCT4wtVEfQbdCSum3gh7ZnZJx3QYTaPq0mY gGozmAF+7viSqG9c8Wy3gsN0eKqbZg7OsZLvF1CrEUyrTsXl4s1gRGyD4R7kEMnSd0if bmcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=YMuLbwf0; 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 o1-v6si5804611plb.459.2018.04.13.09.39.48; Fri, 13 Apr 2018 09:40:02 -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=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=YMuLbwf0; 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 S1753112AbeDMQiU (ORCPT + 99 others); Fri, 13 Apr 2018 12:38:20 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:45327 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751961AbeDMQiP (ORCPT ); Fri, 13 Apr 2018 12:38:15 -0400 Received: by mail-qk0-f195.google.com with SMTP id f9so1803287qkm.12 for ; Fri, 13 Apr 2018 09:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eCgSdFgwB255m0N9UHOWkjZkqY+jO5YLR8ayCqttdPc=; b=YMuLbwf0PvEfW1szf6jd6vvUp9Bsihj6t0GDH/g7A8vwXOdQxWKUnX7BmdyA+SblFb 8dGxUKfoXkPlZmOcwChv7Ff9SuxtEEFnXgobrfFFMDojNlypwgubS4+Amg/5QMvvehtI dsGOz9Ql2DAlBnqKp6xw/TTtPV/6b+jXAQ/FnvFbIFh+SxqnRBuWyDz6NOdy2dNI95Jl eR9ED5NJTgAxqKjfVVh3ee+R1j0iplxdCaY2v/m4Z+Nz0e3yP41ePhC7HK6/9BcYO+xh siPXSr4MQUZ/umuByx+hP+lrBGkbq9p2GESnM1be3k+1YCSAqcYPAmWJ9IptA4Ei5dcR 1pMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eCgSdFgwB255m0N9UHOWkjZkqY+jO5YLR8ayCqttdPc=; b=gu/QR7+2XscdKjATGPzDECvg9X9mTGVRmzP8RLViZI/6PJmOdUVn7bBtKA1rbby79+ Rb12t4xXsCZo7M/7Bgyq143tMP5ha2AsWriOh7+JxzYy7BJgXnQewPn1nfumSo25nJ0l qbBI1N7y+lxwnciGPMbl20fNEJ/SUr4vuO+hJjnEgC/0IxjtNSPddYJAZiaKIoClAV0n /S0JeoFd469rUML+ekrzCyk1QFZ1l2sWwIWCB4hBRIjbMouBUpYojnhuHwxh4M72gEQ/ PIMdaQTgF4G5j1eB5MqumEmin+e6DSHJejBT/0w/2mWYLIxqW/qC0ZsI1e98I1xYAp/w 7irg== X-Gm-Message-State: ALQs6tDixL2HYR/UV7H7lmzWMjHq3PqxpsQK/W1xZ4MBNSAAQ08mj9k4 jLM/1iY3MEDQMicuctH42NOKYA== X-Received: by 10.55.101.131 with SMTP id z125mr5133037qkb.178.1523637495082; Fri, 13 Apr 2018 09:38:15 -0700 (PDT) Received: from localhost.localdomain ([190.210.56.45]) by smtp.gmail.com with ESMTPSA id t82sm5024687qke.52.2018.04.13.09.38.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Apr 2018 09:38:14 -0700 (PDT) From: =?UTF-8?q?Hern=C3=A1n=20Gonzalez?= To: jic23@kernel.org, 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 Cc: =?UTF-8?q?Hern=C3=A1n=20Gonzalez?= Subject: [PATCH v2 06/14] staging: iio: ad7746: Reorder variable declarations Date: Fri, 13 Apr 2018 13:36:43 -0300 Message-Id: <1523637411-8531-7-git-send-email-hernan@vanguardiasur.com.ar> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523637411-8531-1-git-send-email-hernan@vanguardiasur.com.ar> References: <1523637411-8531-1-git-send-email-hernan@vanguardiasur.com.ar> 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 Reorder some variable declarations in an inverse-pyramid scheme. Signed-off-by: HernĂ¡n Gonzalez --- 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) -- 2.7.4