From patchwork Thu Jul 18 21:29:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 1133861 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="QTVLzGS+"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45qS8x2290z9s3l for ; Fri, 19 Jul 2019 07:35:12 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 91D32C21FA4; Thu, 18 Jul 2019 21:33:40 +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 1532DC21FD8; Thu, 18 Jul 2019 21:33:04 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E6A54C21F35; Thu, 18 Jul 2019 21:33:00 +0000 (UTC) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by lists.denx.de (Postfix) with ESMTPS id 01429C21F35 for ; Thu, 18 Jul 2019 21:32:57 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id f9so30154659wre.12 for ; Thu, 18 Jul 2019 14:32:56 -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=Ygt8DBx4mQ1q+VR7kdKWe+H6qZ9iYx6uL9zqGh4hYPs=; b=QTVLzGS+lL9de+byRNpp3U5qraPeeje5vJHDUDd1/2JcQX7WvtT5o+PnPJa+pcqdna 25wJc8Z/zB1hyWOqVaEDZiZ1ThNYNxlZggXy3DMWDYXau04HnhAVJefFsjkkGjVeR2DV /UWqMdKzU2tQvTQ7nUBr49Et4cAly/BJygKB3yxuevTFWRoNo2DdOh5f9sSWMLIlJVSV Dd2eAiaghp9s2eirZ1eZHotSOwQekvLYw7i/ySwu0Ae3t6uWv8BTN+iNaXEqcMZ12+1r E3vz52kqxyXHXUCdvR5FX4wshjBJYAAW5bpSfV70EXsz3WG+zVwdgGU1I5zGpIIXGavT 34Vg== 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=Ygt8DBx4mQ1q+VR7kdKWe+H6qZ9iYx6uL9zqGh4hYPs=; b=aaLyGlHKyDTsWDXP41blotfKtQiy5cJVXpzlesZ1pOX1/t+v8qAnpgwxJSg1TjyZUh juhTQANTHyJCAXApGYXX7Tx5twHB6pLA67HS+fER7LvbOWhfTfM5qr/ocZPmsPLZbMfO /z+n6t0obAu7akCZJOcSa9LkQ+wIceMyh7wL412cshCEd0L4j6RSRuX8+dB55iS+3P9g ypcMOceWNFA2J2kshJ5QLSvep4apCBZ6xl+zjW5/5Qm54Cw8ba87tXRUDqyBBiYekohd LXYV2xXW9W6e35mRMZN1Z2D359ednR7IR0n/+zaMGm0KmhiyQiaT/BbRqL4dXl8MH4ZR 9MgQ== X-Gm-Message-State: APjAAAXTYHXN3OYBfkjzR98peJ6gsGUUkvm+EIFDyICPAoEz7G98p6qF iZZqN9yMn2EAwlq7+Q8R2t0= X-Google-Smtp-Source: APXvYqztyLbN4P43b96Z681Jog/m2sqS9g55QZj+9eZ/g23uA5SksYIxjcVU6GXhpv2+e/CIOXJWKQ== X-Received: by 2002:a5d:6508:: with SMTP id x8mr23302092wru.310.1563485576654; Thu, 18 Jul 2019 14:32:56 -0700 (PDT) Received: from localhost.localdomain ([86.126.26.85]) by smtp.gmail.com with ESMTPSA id f10sm19776404wrs.22.2019.07.18.14.32.55 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 18 Jul 2019 14:32:56 -0700 (PDT) From: Vladimir Oltean To: joe.hershberger@ni.com, prabhakar.kushwaha@nxp.com, bmeng.cn@gmail.com, u-boot@lists.denx.de Date: Fri, 19 Jul 2019 00:29:55 +0300 Message-Id: <20190718213001.24815-4-olteanv@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190718213001.24815-1-olteanv@gmail.com> References: <20190718213001.24815-1-olteanv@gmail.com> Subject: [U-Boot] [PATCH v3 3/9] 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 --- Changes from v2: None. Changes from v1: None. 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);