From patchwork Sun Jun 23 17:48:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 1120892 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="kvlbFZRp"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45X0QS0jVfz9s4Y for ; Mon, 24 Jun 2019 03:53:19 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id A9852C21F01; Sun, 23 Jun 2019 17:50:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id BA40AC21F1A; Sun, 23 Jun 2019 17:50:16 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 65030C21EBB; Sun, 23 Jun 2019 17:50:12 +0000 (UTC) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by lists.denx.de (Postfix) with ESMTPS id F3483C21D4A for ; Sun, 23 Jun 2019 17:50:11 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id z23so11070962wma.4 for ; Sun, 23 Jun 2019 10:50:11 -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=ZMvQ1+MnfQNJvfKLvo4/xXfifXjVYzcS7jB645CSXFI=; b=kvlbFZRpx7PH4p/7mM13v5U19shHkLbtb4uQn6eVLfHb5KEKPRA/2BJEj+mvDUi8Tq IDRi4TOhHknMJ/2S5dgL5qU/T0UjY4gaqoPlfzYCsbJeOxyGR29gWqXFz9qIflonK3QG Hrd5vI8T6oI1N0NtTtFLxo+0j6dMUlt/vvcZDLW9cr2WIYrjK5SrV+GaMIOz0czZQ2My Gc1vCH/YZG27cgPCF/T7LxBZGu5aeIhRvS9jcdqzdjYyNF+I9i0bNBaKgQ9fFbcSqk+5 RDY2i4wJ/JFithfJCK9ExAfQTp0nrUCf9OtR5mfEtXUED2YdXYbCPVVaKwI+9HrZQSuL dLgA== 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=ZMvQ1+MnfQNJvfKLvo4/xXfifXjVYzcS7jB645CSXFI=; b=Mnu4vKps8BzSZwSfxRVif+wAy5d2F0dhnmwZzfpySN8hG8jRb5C0RyJBEr2hbtDo1R KCJGbNOYJPeAtt1Cbj54fVmsFSeC1YP/1KJbb5YwC8v1P4HQ6V53MSTKQlf9cmqqQVHw fG5NlOx4zxdmdyeiv7Z49/uDwrDH/0OhPhbzS6c+cnbiP/tNmB/uGV6Xi1mdQbsWjoAV AniJmrVrUzgP0K/ae/BL38ivVtxdKkKJcw3Z5D7LVLBVMW9Tyag/I0HEgd/RhAcXqJ5i dNhGqb69nMTFatjlgRWBvI4nX1HhCeIGT5oyjSDCmDDyu77pUxnPxejtYo6elDNqaA5r UlGg== X-Gm-Message-State: APjAAAXLMeBZ6j9wx90Jh8aMOCicsin3HOTfx7nzNe8Xy1u04Keae6Z3 +6qoTDiEg4v7q5Orn9MSLJk= X-Google-Smtp-Source: APXvYqwxl0JLYdFnpDf6z2IyXp7JyJsWWMeYfOy0je7HwhdQBegW9/iouQvv6NSqUZfcfYU+gzHnVA== X-Received: by 2002:a1c:e0c4:: with SMTP id x187mr11780534wmg.177.1561312211048; Sun, 23 Jun 2019 10:50:11 -0700 (PDT) Received: from localhost.localdomain ([188.26.252.192]) by smtp.gmail.com with ESMTPSA id o2sm6764111wrq.56.2019.06.23.10.50.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Jun 2019 10:50:10 -0700 (PDT) From: Vladimir Oltean To: joe.hershberger@ni.com, prabhakar.kushwaha@nxp.com, bmeng.cn@gmail.com, u-boot@lists.denx.de Date: Sun, 23 Jun 2019 20:48:13 +0300 Message-Id: <20190623174818.12773-4-olteanv@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190623174818.12773-1-olteanv@gmail.com> References: <20190623174818.12773-1-olteanv@gmail.com> Subject: [U-Boot] [PATCH 3/8] net: tsec: Reverse Christmas tree notation X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This is a cosmetic patch that reorders variable definitions in the inverse order of their line length, where possible. Signed-off-by: Vladimir Oltean Acked-by: Joe Hershberger Reviewed-by: Bin Meng --- drivers/net/tsec.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index 576398676af7..ce19ff9228fd 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -259,8 +259,8 @@ static int tsec_send(struct udevice *dev, void *packet, int length) { struct tsec_private *priv = (struct tsec_private *)dev->priv; struct tsec __iomem *regs = priv->regs; - u16 status; int result = 0; + u16 status; int i; /* Find an empty buffer descriptor */ @@ -708,9 +708,9 @@ static int init_phy(struct tsec_private *priv) */ static int tsec_initialize(bd_t *bis, struct tsec_info_struct *tsec_info) { + struct tsec_private *priv; struct eth_device *dev; int i; - struct tsec_private *priv; dev = (struct eth_device *)malloc(sizeof(*dev)); @@ -794,14 +794,14 @@ int tsec_standard_init(bd_t *bis) #else /* CONFIG_DM_ETH */ int tsec_probe(struct udevice *dev) { - struct tsec_private *priv = dev_get_priv(dev); struct eth_pdata *pdata = dev_get_platdata(dev); - struct fsl_pq_mdio_info mdio_info; + struct tsec_private *priv = dev_get_priv(dev); struct ofnode_phandle_args phandle_args; u32 tbiaddr = CONFIG_SYS_TBIPA_VALUE; - ofnode parent; + struct fsl_pq_mdio_info mdio_info; const char *phy_mode; fdt_addr_t reg; + ofnode parent; int ret; pdata->iobase = (phys_addr_t)dev_read_addr(dev);