From patchwork Mon Mar 5 07:49:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Jha X-Patchwork-Id: 10258311 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 DDD1560134 for ; Mon, 5 Mar 2018 07:51:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB0232896B for ; Mon, 5 Mar 2018 07:51:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BFBF62896E; Mon, 5 Mar 2018 07:51:41 +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=-5.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB, 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 658512896B for ; Mon, 5 Mar 2018 07:51:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933064AbeCEHvk (ORCPT ); Mon, 5 Mar 2018 02:51:40 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:39237 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751498AbeCEHuS (ORCPT ); Mon, 5 Mar 2018 02:50:18 -0500 Received: by mail-pl0-f68.google.com with SMTP id s13-v6so9208790plq.6; Sun, 04 Mar 2018 23:50:18 -0800 (PST) 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=aeTIiNPROMSnVtj6vOIUjSJ2PHkxWE+zIKzwJMCcfB4=; b=CWAHVK70SIq9RYWRRQSvhWl5E15jOQ/9sxPDHfOv4s+/DI8VCLY9gxl5qp5nUTBwlI xkOoEhsFas7cFd25HTKTPItAzockNIecnyB2vN4I6MHHtpSKsSXaHT+gAAayGyvoCkej 3QmwmJS1b3i4xxa9mA3Agv50e0b1N6u47vv08lwTxmYBwbO+OA/MuWUyyWz/6AbnHb4L qY191rKg+Za3zPxkWiZlOrW86Z/eH+VVy5/oF7tMToc1cGrSBrJm+yUT/s8yP8mZLoIs th9KLJhvbtyC7dvswTHwxwcW2WVTXcf5yAwM62piUPV7NsmWh1Ri2WLO4009CL0lJmLz 3F3g== 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=aeTIiNPROMSnVtj6vOIUjSJ2PHkxWE+zIKzwJMCcfB4=; b=bXxxd4/NZyXjPQMDBHQehiBol6yKugu8GUq4X/t2567m+JjYqQj6YYnpifi58spRod rSk1/Rx2VzXWIVhmTG5Jk55ZE9j+0Yy840sP06U8ON6RosecvzTtIcfk6jCY+/0Qm9yl CAjZ4veDWDabFQux0yN6NXNHXEV6la3SW8vB7gk9k+YmDc1iY1AlgV4T7rLfJe9nwEmv XlAUnQFoIci5HrhUDITOsYWUfRjAcDouL9NHGwUa+LjyWlggU5V9v5NrRrpMhfIIgO8L 13edNF4NuuVZA0or9mPG6p1PXUBxpE7sZsdN/eD1dGuk5Vkpj7TXX4aS52PYWTrP57QW xbpQ== X-Gm-Message-State: APf1xPCK4deGwqMi/HOrsGdWwN8fSv3T7Hn5My+2uy4ON8bSqMmlfbc2 pyNux1rlnIhXWDEBnolxjRw= X-Google-Smtp-Source: AG47ELuFnU0o2jGfnZ+/lqv+8G7wjRhqY0jynU1YgIs6REJD1S846tLYswmbNh+BEtKqmyboe8woBA== X-Received: by 2002:a17:902:3303:: with SMTP id a3-v6mr12225268plc.399.1520236217306; Sun, 04 Mar 2018 23:50:17 -0800 (PST) Received: from localhost.localdomain ([103.46.193.14]) by smtp.gmail.com with ESMTPSA id 125sm21674256pff.114.2018.03.04.23.50.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Mar 2018 23:50:16 -0800 (PST) From: Himanshu Jha To: jic23@kernel.org Cc: lars@metafoo.de, Michael.Hennerich@analog.com, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, daniel.baluta@gmail.com, Himanshu Jha Subject: [PATCH 06/11] Staging: iio: accel: Reverse christmas tree Date: Mon, 5 Mar 2018 13:19:25 +0530 Message-Id: <1520236170-14668-7-git-send-email-himanshujha199640@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520236170-14668-1-git-send-email-himanshujha199640@gmail.com> References: <1520236170-14668-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 --- 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 476b1c3..907fb85 100644 --- a/drivers/staging/iio/accel/adis16201.c +++ b/drivers/staging/iio/accel/adis16201.c @@ -243,9 +243,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)