From patchwork Thu Mar 29 09:13:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shreeya Patel X-Patchwork-Id: 10314779 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0D2DF6055B for ; Thu, 29 Mar 2018 09:13:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00DDC2A2C1 for ; Thu, 29 Mar 2018 09:13:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6FA92A2CE; Thu, 29 Mar 2018 09:13:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0881D2A2C1 for ; Thu, 29 Mar 2018 09:13:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750858AbeC2JNa (ORCPT ); Thu, 29 Mar 2018 05:13:30 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:42903 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750707AbeC2JN3 (ORCPT ); Thu, 29 Mar 2018 05:13:29 -0400 Received: by mail-pg0-f65.google.com with SMTP id f10so2667765pgs.9; Thu, 29 Mar 2018 02:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4s/K4HOURz9u+K/7UEF+a/TmVFo/JbfMjF8VeshcSkk=; b=F+OyaXx8bG5QEHMot00+7bKq4QhpQUMfEAm8kbHrbv3yYDj6YKFCw9x1JseMuta3LB 5wRAvhoc7kwdmVBaOUtKptg2rs/0h5/BXyJPAG4nbEgy41Sb172FycoYCHYCCNUOstFm OCQDSNHDtk67V7txl2AR9rrgfS0+Cey0aK7M/OKsRfm3IFWlYsXHsoeuzG1f0cUcaYCJ UwiGclmc4Y40IE/wN9pDKE+38FHYZuZXkpiMxx6j7Ewj3lbyuy2BPAuDxnTyIk2Twz5n QgMSH9fkSyDeEy+Bp+nMcZ2/a+vjy5HJRDScdP46GMf0uJ9myrQiQNuS1mRyDA1KchbR N+KA== 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; bh=4s/K4HOURz9u+K/7UEF+a/TmVFo/JbfMjF8VeshcSkk=; b=Zg5psnBVGskmbCAuHwzYKxII/NTTeu/L7uiFxlpmWlD1XwtHy796Hn+W+qZ4GRk8I5 QpUSqOCapgUhijB5NaO+FbndNkecs7OtRk9rYBoJ4dPLCXK6kQXV8OE9QrC5GpBFdFB8 3DQRxzSQLYw+V94/M+K7T1UTP5M8ih90dJ+w697P8mdHXvUr6NG7hczC8y2LQt0N/55i zPLdJX5zGRPkp7YXSk2d4hVP7i834Rk8OrrUeJh8mVtgAZlFEdfJnYg1CysKCgaII5fV 8BBXlXRT0fh/OBX+IdLJFAiHDPfK5cmpMYGqWloEz0gkABLFq0NYvVdWAsZo8lnWpd+8 JKtg== X-Gm-Message-State: AElRT7EEmAr9pKsV7d+zGuUeSX4nnSFIPOU5MiCtifLpR7XK1H3YarR+ x0lGpQGBNNmfTjYIWoN1pKYlYw== X-Google-Smtp-Source: AIpwx4/8aMZ8M6KwSihu2FOqcCkbkMfarbVlEAVSDaspMFDEJQkwjA2QKSCs1oiNAQL9+oanDWnSDw== X-Received: by 10.99.170.9 with SMTP id e9mr4904917pgf.331.1522314808862; Thu, 29 Mar 2018 02:13:28 -0700 (PDT) Received: from shreeya-VirtualBox ([103.212.140.137]) by smtp.gmail.com with ESMTPSA id q17sm9802818pgt.7.2018.03.29.02.13.27 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Mar 2018 02:13:28 -0700 (PDT) From: Shreeya Patel To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, Michael.Hennerich@analog.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, daniel.baluta@gmail.com Cc: Shreeya Patel Subject: [PATCH v6 2/6] Staging: iio: adis16209: Prefer reverse christmas tree ordering Date: Thu, 29 Mar 2018 14:43:23 +0530 Message-Id: <3f021293e6183f6fefb597a9a01b762b73d69bc3.1522306893.git.shreeya.patel23498@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Prefer reverse christmas tree ordering of declarations to improve readability. Signed-off-by: Shreeya Patel --- Changes in v6 -Introduce this new patch in the series. drivers/staging/iio/accel/adis16209.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/accel/adis16209.c b/drivers/staging/iio/accel/adis16209.c index 0e6366a..8f4fa6b 100644 --- a/drivers/staging/iio/accel/adis16209.c +++ b/drivers/staging/iio/accel/adis16209.c @@ -270,9 +270,9 @@ static const struct adis_data adis16209_data = { static int adis16209_probe(struct spi_device *spi) { - int ret; - struct adis *st; struct iio_dev *indio_dev; + struct adis *st; + int ret; indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st)); if (!indio_dev)