From patchwork Fri Mar 16 20:06:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Jha X-Patchwork-Id: 10290043 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 742DE601A0 for ; Fri, 16 Mar 2018 20:07:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 662E128FDB for ; Fri, 16 Mar 2018 20:07:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B26A28FDF; Fri, 16 Mar 2018 20:07:28 +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=-2.0 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SBL_CSS, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=no 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 0392828FDB for ; Fri, 16 Mar 2018 20:07:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752519AbeCPUH0 (ORCPT ); Fri, 16 Mar 2018 16:07:26 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:40612 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752713AbeCPUHZ (ORCPT ); Fri, 16 Mar 2018 16:07:25 -0400 Received: by mail-pg0-f65.google.com with SMTP id g8so4492435pgv.7; Fri, 16 Mar 2018 13:07:24 -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=Sg07Ic1+2pEigBz89f+J6N6kR1zCGyfxg3iHxeVxRco=; b=XgQ530JGBMqwyI5XGqOTpxAiaeL0jMC2kHZrruhUGHmvnxg4OVFoh1I3H8jRveYFb2 YAEG1t9tMdo+uBaAHAjth69NTcviGfCxjH97na9EJn3LpNMUD+gXTPptF8D7k4YiHeg+ nmmQCJw1NzJIVOamJdwctPcHyluI757Mq6VVHYRsnyOGySVlSr8hvbJ1U+LO7x8vUUr3 k/KjVQ1BLmh4qKbN9rIxz6LAJnY60ovUsZ4bXwt4pclSk2z1Hw+siv+UGTfVRHyo4Sx0 D8mgCWp5MU9JIYFAuzpM7qT3omOgThhLC7u4Zm/nrW35G+r+edYVI1kLqyYQuuPVbm1h 9cxw== 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=Sg07Ic1+2pEigBz89f+J6N6kR1zCGyfxg3iHxeVxRco=; b=r8i1hdc5tUl4Pgy5c8M741AWv1fxsk3yjMu81eTYxOYXznEMZ7JSeZQhmXVEDLt7hH uj1htT+MSyilAafXoYPcbMewDEtwNnls2RjDlvlZY+1PS2elkUjPRi83AR1kCm3VTq05 yFz3zeOuRXnP8R2I5hzA2zUhdjHSFB8wUfBJ8SQhH3lTq7RTJ84nZP6Du2/J1w5HAR03 Cz0woUNfx+Uj/ahQ5NrAmMC0RNiDfRmTW3TzJXnHwmCnpJy/gQ9oVzECr+Z+MP9Ixp+X ISPoOaWONrp5VgqoM7dtGHiETMe04wotqlyQjBpCByBOzOrI82qPt0DJvdsBu+Lhyhmk 41QQ== X-Gm-Message-State: AElRT7Hji5BsG0InF/DpMJir7EgCNtz2vi0m6g3Yl/M52Sn966xZMZJv K0vjSDVThv6JIBMhV0HsLLc= X-Google-Smtp-Source: AG47ELs3nW3zG29mBIDG1Zf9xR5DA6FVR5gMWYo2NsXuMEb0S4v+iz4LT1xZM1g8+q7B8inUuthRBA== X-Received: by 10.101.64.197 with SMTP id u5mr2474705pgp.23.1521230844369; Fri, 16 Mar 2018 13:07:24 -0700 (PDT) Received: from localhost.localdomain ([103.46.193.14]) by smtp.gmail.com with ESMTPSA id s9sm15605347pfm.39.2018.03.16.13.07.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Mar 2018 13:07:23 -0700 (PDT) From: Himanshu Jha To: jic23@kernel.org Cc: lars@metafoo.de, Michael.Hennerich@analog.com, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, daniel.baluta@gmail.com, 21cnbao@gmail.com, Himanshu Jha Subject: [PATCH v2 7/9] Staging: iio: accel: adis16201: Prefer reverse christmas tree ordering Date: Sat, 17 Mar 2018 01:36:24 +0530 Message-Id: <1521230786-18155-8-git-send-email-himanshujha199640@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521230786-18155-1-git-send-email-himanshujha199640@gmail.com> References: <1521230786-18155-1-git-send-email-himanshujha199640@gmail.com> 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: Himanshu Jha --- v2: -no change in this patch. drivers/staging/iio/accel/adis16201.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/accel/adis16201.c b/drivers/staging/iio/accel/adis16201.c index 298bf90..00e944e 100644 --- a/drivers/staging/iio/accel/adis16201.c +++ b/drivers/staging/iio/accel/adis16201.c @@ -259,9 +259,9 @@ static const struct adis_data adis16201_data = { static int adis16201_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)