Received: by 10.213.65.68 with SMTP id h4csp1303339imn; Wed, 21 Mar 2018 07:33:27 -0700 (PDT) X-Google-Smtp-Source: AG47ELuIuQrruciFDhSHiD1+JJnZip/zqvdW89QcNN/gu2ycY7AFdX0vETjFmIena5GXJls3LL5E X-Received: by 10.99.112.92 with SMTP id a28mr14861813pgn.17.1521642807924; Wed, 21 Mar 2018 07:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521642807; cv=none; d=google.com; s=arc-20160816; b=nSwROefmvuDQzwMjUU0j2ZB3Q4JMsUNRszjL9S8bnvda/JEmBZe1ZVHASBqiVXs3PL Ch9Lme8DzWTqTDpOsZIukpg8Su4AKdN8cQhd4Vt9sTG/Tf7EA+P2oZSTDQ/mXEX6bapa 1VIwYd1MxPhyfNQKeetQrGn8b1CdhOihvd1D7cjhny0k7C7TvOuz4eef68TrvD8DeXBk 1AnwMKjMRWNikK0onilqYWzkpK18Qx4lRlUvm5Hj/BcUW0mPC9IlfekmE46ygdpGLCIY nNOx6NtdEV+ek3Tblm4Vt7gaVaxHmtN87PxC27PB06yTD+0bl5Z8hZdfvqTTI45Pys7U rpug== 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:to:from :dkim-signature:arc-authentication-results; bh=ikNK2hc+RDgAuVnCeDp6x9ghfYdGRecGOkiieIzo5TY=; b=qg1hdCW4JpCt+VpBaLy0fNvRblxo+7h8zhxJG8uL0JsDtRx87mTSsydCqhjNU8TtUC lklQJMaGD3wPIZi1vM8XXpSHroVtQT9c+j93/oJfS+IQ6IRhG6qB1fgbb4Mxg5H69aJ7 2RbombHSBDDJQMzvMlXHv7pHqPojk3V2B1hFTCXSmEKRN+SqvgriE9BXmkVzDbBY5bC9 GFYsNcXfMQOqnZ7+oHSF6DVTxqHGbkCbdHea7TYmNDZE76eZzWBP20ColkM7oRUKXpOo mwj85lNmqBMlFsUR+gX/zMNg4DDbummCvS3jPG2Fbcuk4BD2vV5dKMBpaRkYrLRSbZV4 7WKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=p79jQr71; 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 f6si2880667pgr.690.2018.03.21.07.33.14; Wed, 21 Mar 2018 07:33:27 -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=p79jQr71; 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 S1752382AbeCUOaT (ORCPT + 99 others); Wed, 21 Mar 2018 10:30:19 -0400 Received: from mail-qk0-f193.google.com ([209.85.220.193]:37010 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752300AbeCUOaI (ORCPT ); Wed, 21 Mar 2018 10:30:08 -0400 Received: by mail-qk0-f193.google.com with SMTP id w6so5610487qkb.4 for ; Wed, 21 Mar 2018 07:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=ikNK2hc+RDgAuVnCeDp6x9ghfYdGRecGOkiieIzo5TY=; b=p79jQr71zmQf0sN0DgwYIgHAc0XSwsx00Zp1BD6EfMPWf7B/xhUGJsYmzO32A9UCmU ELquXzkjmQRpXGA31dHeXLg0st0Jz5lDMXdyCeFplUtPFBANJGpbe2dSM6tDweznz/m3 c8Hv9Gp4JqBdpSeiMiF8ozfayGFOsxioiu2lIramsgEuPxIRJVkqGGZtes5wehCS/oGb HI1xCt4zhvn65WsEkC752ZhDJ3LfPX7Os08OEunSzB+bgSJ9Ec5pkPi+n0T6MLd3cubm n9RZLtYBv2JE4+1IPu1Er0B3iZeVrKFyjaXxgVePCGKMN0id8gQ8MjmFzvosZRMwl8Zb XOpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ikNK2hc+RDgAuVnCeDp6x9ghfYdGRecGOkiieIzo5TY=; b=VLv/YWDqhjGQOU+Fs3stvemcktuo315uTwN5yIH8sN6xZxoS9HwdTm7wo8qjyEilHT lhhdoLiwYHqLq2qWSLxFAfMfQCFAuX4R3y2Ns8e/ldvyQyzYVfXmJetBbXhaCB37iNxV KHMUcveZvpL9R3fCY+YSlu0Ywr4jv3pDspfakTCS8RHDzlNXSzSbXSm1tI1XtBg3nj5x AMTbfhh8Xn+DrIWWx/2gKBcJ5Jn7WQ1uuyH9+9aqc5REEMLO9McMbjw0b5bmuSmvtk0i 5Kpj2CV/xGGvF+a1B9fN86nVRVkih+yTdtQuaSuk8/7SYaMeFZmtTYdgCQmH9WxbMj28 SfHA== X-Gm-Message-State: AElRT7GZUjiSHNcoFz3YYJtaOKin4cyNfluGRy0T+fq6VF3tVfJf57vM t9iwqAQuhH9AqwihZHOhWbhodg== X-Received: by 10.55.82.215 with SMTP id g206mr7023387qkb.251.1521642607753; Wed, 21 Mar 2018 07:30:07 -0700 (PDT) Received: from localhost.localdomain ([190.210.56.45]) by smtp.gmail.com with ESMTPSA id g14sm3118592qtk.71.2018.03.21.07.30.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Mar 2018 07:30:07 -0700 (PDT) From: =?UTF-8?q?Hern=C3=A1n=20Gonzalez?= To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, hernan@vanguardiasur.com.ar Subject: [PATCH 04/11] staging: iio: ad7746: Reorder variable declarations Date: Wed, 21 Mar 2018 11:28:52 -0300 Message-Id: <1521642539-4845-5-git-send-email-hernan@vanguardiasur.com.ar> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521642539-4845-1-git-send-email-hernan@vanguardiasur.com.ar> References: <1521642539-4845-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 86919e8..57623db 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) @@ -681,8 +681,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