From patchwork Wed Dec 29 03:22:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 12700729 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4697C433F5 for ; Wed, 29 Dec 2021 03:23:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238567AbhL2DXB (ORCPT ); Tue, 28 Dec 2021 22:23:01 -0500 Received: from mail-bn8nam08on2138.outbound.protection.outlook.com ([40.107.100.138]:18785 "EHLO NAM04-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238535AbhL2DWz (ORCPT ); Tue, 28 Dec 2021 22:22:55 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oILe5HryjwqTxAZkMvzaNXxLh3bURsEwL+3mm7/VsxpgchJzv56IrZp8t0dV0q8psJZYuo10Png0H7pZqfdJEhb2XNpvF46w/AQFulSLKPPFjol5MMOXyvZ3FqRPfkudj1SGlzu9+v53EhmZPHdqvvV65ACy5xr7kDoaWX6hvFFuNLVNdV0gIhiTgrq2+OdTgFgoz0wnAfFNu2iKMGaUzDq43dBGBL/4ebK3iZzfeEjljE9GbUWmgrHD9ihuqBDSxm2S+hq6MVwhbHABYOtIN3c8w37mbDjavN0LB5NL41U0eP24GZeCIHdVxqXD1WcXsyKPuc8HWdEn//ACa4BvEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vKYOy+jUiVJoV7CTmh++6Blxmov/ResMfYxBFE21h/0=; b=mt0yAAq/iBRYbVfx3l5jo5Dvs07Kkv/juG0VCkRkb8DU3E4+OyU34vbaZ1kHPJ/S9pd128mJV97DhJPwjYoTjlFNWtexthhjS8VI5VLRW+hqWnIMeKHGsZVtc5+NrONwbck1ZDQGOthcXbNO8Ylp5A2kjOsLbl/ldHCOskJ1XL0tiOSh/oGbO6rcZUmeZyph8rjcfqhq0ZeihFY68W7dZXoDl22RTSLJMmd0yMLnhLY7lL8jVl70PKzsjh26mXtaZpZjOKCkKTjjiNkwdjWDP1PoVaIKskFp2tX+XpncGHDprXGcqHWCYh1RYxpPkMsyXYgmIP/1bh2APHzKqcRZTw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vKYOy+jUiVJoV7CTmh++6Blxmov/ResMfYxBFE21h/0=; b=FGkkkGb2sbyv+w9Be/6xqVG/LH5dwRfV3QuCHAUA+oRAHYXTH3vhmhpU5DYyPsYbzT+5Xhe2izLKRtJndC6ejpbf1jbxdOeYbqTSrd4wqSLmAvMI/DQ5EyZ719cfx2gQjtyiZpTMyj4CxUOUkfqRQM5UbGnjvKZ3ezb3IJinnBE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by CO1PR10MB5521.namprd10.prod.outlook.com (2603:10b6:303:160::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4823.18; Wed, 29 Dec 2021 03:22:50 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::2d52:2a96:7e6c:460f]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::2d52:2a96:7e6c:460f%4]) with mapi id 15.20.4823.024; Wed, 29 Dec 2021 03:22:50 +0000 From: Colin Foster To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Russell King , Heiner Kallweit , Ioana Ciornei , Jakub Kicinski , "David S. Miller" , Florian Fainelli , Vivien Didelot , Andrew Lunn , UNGLinuxDriver@microchip.com, Alexandre Belloni , Claudiu Manoil , Vladimir Oltean Subject: [PATCH v1 net-next 4/5] net: ethernet: enetc: name change for clarity from pcs to mdio_device Date: Tue, 28 Dec 2021 19:22:36 -0800 Message-Id: <20211229032237.912649-5-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211229032237.912649-1-colin.foster@in-advantage.com> References: <20211229032237.912649-1-colin.foster@in-advantage.com> X-ClientProxiedBy: MWHPR14CA0015.namprd14.prod.outlook.com (2603:10b6:300:ae::25) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 039bd8ad-1ee5-47de-50ba-08d9ca7a7e42 X-MS-TrafficTypeDiagnostic: CO1PR10MB5521:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2657; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: p9E4gyxBE3K3wrgRGZyMhd5KpszNypV9Ecuwoeh7vuiqF6DMLzp29b0WFLdwKkkQOW7Ymt04Iumkx/QsnmFHbdGipWrpOt00F5Ly4MtCqqKeEYDg9ZtHH2/uPrGxAXRG/rzPD9pIBkBMOJrrOTlr0E9AItHtev4rVLmoqUgobgweSW5rlFsUsdLr+9zQxQOFYobvEq0HhNEgELTeB6oRLsOJB+fVVoH4TRtkFSIAgMKZkA8AtIWt2sLcQh2JyJG+DxfiP5EePqzXoIO2HUS245H2/WX7u6+w4LFIH5Gc9pIKwbBbfADzGINfTWw53TInRx6Wk9TvnVXq5d5kq4T69+kbz8/MQ7IGXN2zllcbg7GAPU4X+q6us09GU1H6XRbb+yLXUUA0gZ2gZESucuhiV8DZ4k89mI/q6gzmLqerY2C/yacAA/OlClhYqio6fQepUinTJjHdb9/1BN5Vy8STZrocD4XxlxARxs5bXuHgj8NJGeEqZMBTQp2k87aa7vR68YMkB8ifW9UeAtATy837Ru97tHlKtgZF91lZXlj7sZSwVM/FoPgbEmdMKV5wJpnKMy3e35n+LlYcjqxdEBEWM/QzCy1mgtK0D6xoqAJn+KfnAbEn/tuHZdhEauOSyY9CXnsEBiD+LPF/YMhs8P0VPp9vNcHX7ykxehG99RwTnZR5lIBiLejkwkpxzTnKyCdrxgUHUEXu2M8MkgPgXWEsdg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(346002)(136003)(42606007)(376002)(396003)(366004)(39830400003)(6666004)(316002)(66946007)(186003)(8676002)(4326008)(2616005)(2906002)(6512007)(44832011)(83380400001)(26005)(6506007)(508600001)(1076003)(86362001)(54906003)(5660300002)(8936002)(38100700002)(38350700002)(52116002)(66556008)(66476007)(6486002)(7416002)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yx9XcMOH8rPRoxx0xfmI01CGewzBQxa3SBQ2hHZrLvPj2FJSYZw3VSZB6x0c84S3msk7/ctLH9HfrUJOTpRBVNIUv/923F/Xi6jyTt5sHKSSWN/+e3Fzxv5xlUwVxhqf+GuxZlvr7F0LdKa3UqU24+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9JH6w/4lLr7Y8AkYfV7GQVCuX+8cgTHTyGNASrSMtUt2Fl9gjKFEzEXWQuAFLW62Qxc+nWiaSCLHtpZyW0ru2LHdAo04nC7UD264RGmllmW5lzDIEo+HLWcROwg0tcNKHUfM9I347Yc2Hz4ZY2v0F/j8/3G3QpRXWn53vzHHmW315H55089A3/3e8RFw65wMnv7QL0Es6fK+goAnviyeivL3AEMP3mDOs3nfOxmC9jFzAhclkDgYZ+bmkHptw9luOlqm+FPY6NxPE8pf54Slxg0vp8sIJwiZy/HVfkp/BMrv/0Zr5RgKzXVd6PIxghy2qrPkN9z+SoL2ET+9vhfxk2AID5v0xRZUHz/jjnMWQNWnIhfnlC/aoaKIbRnoRS3iuJD4P4VBjGDsrBCgSHEAp89ySuLzHTmrE/0L1lqWDnQsZqiw8zz1phcgO6Gujp3UvZEta5QHg== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 039bd8ad-1ee5-47de-50ba-08d9ca7a7e42 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2021 03:22:50.4138 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XQuAGf29MgKOLVTouldiHZ4JVng2S8vGvoKwHvOU2YkLCViFqsxO/IudiFpJEKNmCdC/S5ycDZu7oU9iCWVHXmTbjnELpE/TEh3MRwZWZpA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR10MB5521 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org A simple variable update from "pcs" to "mdio_device" for the mdio device will make things a little cleaner. Signed-off-by: Colin Foster --- drivers/net/ethernet/freescale/enetc/enetc_pf.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/freescale/enetc/enetc_pf.c b/drivers/net/ethernet/freescale/enetc/enetc_pf.c index 38b285871249..0b6d366a04e7 100644 --- a/drivers/net/ethernet/freescale/enetc/enetc_pf.c +++ b/drivers/net/ethernet/freescale/enetc/enetc_pf.c @@ -829,7 +829,7 @@ static int enetc_imdio_create(struct enetc_pf *pf) struct device *dev = &pf->si->pdev->dev; struct enetc_mdio_priv *mdio_priv; struct phylink_pcs *phylink_pcs; - struct mdio_device *pcs; + struct mdio_device *mdio_device; struct mii_bus *bus; int err; @@ -853,16 +853,16 @@ static int enetc_imdio_create(struct enetc_pf *pf) goto free_mdio_bus; } - pcs = mdio_device_create(bus, 0); - if (IS_ERR(pcs)) { - err = PTR_ERR(pcs); - dev_err(dev, "cannot create pcs (%d)\n", err); + mdio_device = mdio_device_create(bus, 0); + if (IS_ERR(mdio_device)) { + err = PTR_ERR(mdio_device); + dev_err(dev, "cannot create mdio device (%d)\n", err); goto unregister_mdiobus; } - phylink_pcs = lynx_pcs_create(pcs); + phylink_pcs = lynx_pcs_create(mdio_device); if (!phylink_pcs) { - mdio_device_free(pcs); + mdio_device_free(mdio_device); err = -ENOMEM; dev_err(dev, "cannot create lynx pcs (%d)\n", err); goto unregister_mdiobus;