From patchwork Thu Oct 18 22:46:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Rowand X-Patchwork-Id: 10648389 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C46A113B0 for ; Thu, 18 Oct 2018 22:49:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5AAD28C6C for ; Thu, 18 Oct 2018 22:49:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A94A428C78; Thu, 18 Oct 2018 22:49:22 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 336E928C6C for ; Thu, 18 Oct 2018 22:49:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725777AbeJSGwb (ORCPT ); Fri, 19 Oct 2018 02:52:31 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:43768 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727552AbeJSGvY (ORCPT ); Fri, 19 Oct 2018 02:51:24 -0400 Received: by mail-pf1-f194.google.com with SMTP id p24-v6so15545822pff.10; Thu, 18 Oct 2018 15:48:14 -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=zdOcjsQSagxh/0ytfqlFE21zp3hEcz2hdT+yMst4gNc=; b=c1uOYwXosBtCvyj575Wmy7ttuIHcMNK9WOp/qfAIhCEVXIWwLVi/nvSSksbKtHFKk6 vwqJ/TzTagErWp2a6azNCOXFrxllNtmGdHomVGNrcs9LaXZhSjHpgPg0n2juvUueNNOA 98H4XSt0VABliigRqjNwrv4SlO2eO68UVfqTIu8adDRz8ZSiv4gC2WqnC8U2vWyqTSqy zymdMTQ2RTGM2JrvnUcf7hLOPimQR6lqgxbqO3bxwegYcRLhfKZ21hR5xNpp96h4taI9 7HBHgMMWTmtRsUhbdQNFXV+tZ2Kx27721aXVGRjvmtvpxhqoq+YNH1RjX2gYgbZZY1sC hUNg== 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=zdOcjsQSagxh/0ytfqlFE21zp3hEcz2hdT+yMst4gNc=; b=C05ZipSfnes70D1aJnm48lH8DaKQ6idMvvaY8UjHQalQZVSv4lmiY8uMNidHE0gbAS WXP+lnc1RLh8kB/onddI88dCpFJbAOBQbb1uC/2pqxSWHNhXq7WRRJ7YoN7Ix/DPZMT2 maKYd0eUgwiW37KrtoV1Fiwoo2AICoKAouxb2I475LY2DoflbO53cruN882h6kfeNQ3/ w0kRYQMSDXi+meKJRsY3xScKjK4J0Lc4LbY38Umox4dS2P3DIA9iPHjjbxbmqw2fdJv7 dTcDYZxqbhV5t+IsuL4DdWcH22WEnggTBYaW1zaywZ/pnOlmogcLpuX/UiqhEnXYP7tb 6Tfw== X-Gm-Message-State: ABuFfohe4n+OW7+5m8bZVKlxQiYASInqHOdZidrn0I9guLJUZBq6qV+l 7VqqNJHoS8Dzx8z26vWiH20= X-Google-Smtp-Source: ACcGV60ystnSRz3PymYh6lwweFjt6UrpHkGgdyEVaBm+PihEzfeJGpjawOlrkGo5MlBDcSq2mu+lyA== X-Received: by 2002:a63:f553:: with SMTP id e19-v6mr29964960pgk.417.1539902894348; Thu, 18 Oct 2018 15:48:14 -0700 (PDT) Received: from localhost.localdomain (c-24-6-192-50.hsd1.ca.comcast.net. [24.6.192.50]) by smtp.gmail.com with ESMTPSA id v81-v6sm38129268pfj.25.2018.10.18.15.48.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Oct 2018 15:48:13 -0700 (PDT) From: frowand.list@gmail.com To: Rob Herring , Pantelis Antoniou , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Alan Tull , Moritz Fischer Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org, linux-fpga@vger.kernel.org Subject: [PATCH v5 08/18] of: overlay: reorder fields in struct fragment Date: Thu, 18 Oct 2018 15:46:26 -0700 Message-Id: <1539902796-8382-9-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1539902796-8382-1-git-send-email-frowand.list@gmail.com> References: <1539902796-8382-1-git-send-email-frowand.list@gmail.com> Sender: linux-fpga-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Frank Rowand Order the fields of struct fragment in the same order as struct of_overlay_notify_data. The order in struct fragment is not significant. If both structs are ordered the same then when examining the data in a debugger or dump the human involved does not have to remember which context they are examining. Signed-off-by: Frank Rowand --- drivers/of/overlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c index 7fcf4a812d06..272a0d1a5e18 100644 --- a/drivers/of/overlay.c +++ b/drivers/of/overlay.c @@ -49,8 +49,8 @@ struct target { * @overlay: pointer to the __overlay__ node */ struct fragment { - struct device_node *target; struct device_node *overlay; + struct device_node *target; }; /**