From patchwork Wed Dec 29 05:03:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 12700742 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 29C6CC4332F for ; Wed, 29 Dec 2021 05:03:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238746AbhL2FDv (ORCPT ); Wed, 29 Dec 2021 00:03:51 -0500 Received: from mail-dm6nam08on2097.outbound.protection.outlook.com ([40.107.102.97]:64800 "EHLO NAM04-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238747AbhL2FDs (ORCPT ); Wed, 29 Dec 2021 00:03:48 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aBR8F+M60Xdi4ZCNJIY2uGXnnbiP3zaK4R4aIWMU37sDPA9YHMpf92odjRz2h6ch+OYB9SNPFcmaRhqxcT83z06Cs0q71KQn+J2dyLPSsh6NaiX1oFcaqwzjMz/Ywy/zWOLf1o+535hHPkafQDvw7XM2dhuk+YHLDmcDWqgbwGKSzmM4wLoEsYiOTX9lWq7NhYjqrx/XGH7do658BzBvygHWGOExF4RIMko6AfY2X/3sSMaSkk2/OSCIwGoU/jcnNuN1ffltx/MniTQexYt5i8fE5ftQlNzVzL22+Dy/mUF+Bu/byTgPfxZjO64rXZOUJCRALUstC8C2zDIP3DGmUQ== 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=toz/kREwsP45vdGNTdO8e4m3bTuuZYfc/3+TCfHILJk=; b=b4/KvIwmZa9pMuSuGxgkoE09B6f1VOCA3wUFQCMHMatC01Nc52B4VCQ1a3CtCx/z+jIDGLU8NqwHCQ7sggh0ZYtobtzVVRKBi73XrG5c6E5AlwEtC4nCa+PAAIWu4YUuqOtkq5j89DdfA4sh0NGP3V90yhoJgMuZWE4Kd2EWQ+yQ4woBHFyoRBwphUanhBfe0nmJiGYd+1B2sZzhqryNz8gb4PmS3VQ+gRcK1QLbc5kcxmrX4/2Y3KZNJEfyxSmKLdSqWRljlwzmZQD5wNvALSGBXk7kcrKdmCgKgVGqSmhOVW7rgRyUPN5kgMM9it050j6PQsx92OlwjmQlY6R/Dg== 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=toz/kREwsP45vdGNTdO8e4m3bTuuZYfc/3+TCfHILJk=; b=IR9D5RR2kAE9Yf5YSaXzycVyB6Or6QdGQUnZ+0hvCuQprjszYSWCacSZHUPAURIKqGrBvm6s3WELsHtta13mwn8r3FjtPJfuDUK3Itli11pobnIZh+f0P+OkgPMoqutfCBKCJTtuaEcjgVXesyrqPP+Hy8+gcWlB4HBrpX94F+w= 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 CO6PR10MB5441.namprd10.prod.outlook.com (2603:10b6:5:35a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4823.19; Wed, 29 Dec 2021 05:03:41 +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 05:03:41 +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 v2 net-next 5/5] net: pcs: lynx: use a common naming scheme for all lynx_pcs variables Date: Tue, 28 Dec 2021 21:03:10 -0800 Message-Id: <20211229050310.1153868-6-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211229050310.1153868-1-colin.foster@in-advantage.com> References: <20211229050310.1153868-1-colin.foster@in-advantage.com> X-ClientProxiedBy: MW4P221CA0026.NAMP221.PROD.OUTLOOK.COM (2603:10b6:303:8b::31) 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: d6c74d9c-eeaa-4c52-6d55-08d9ca8894e8 X-MS-TrafficTypeDiagnostic: CO6PR10MB5441:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0evBRd9AfcggJ2fUyTZ6tSp5jtzTuAr6NHSXHP3ijk67g/5pAdb1cpukBc5hr6pyOoJLLtnUvgs7XbLMVLSt9H5zfTLJzxMVb8GhCX+FTmRGCVc+Iw0u5Sm9kOyv17V+kCaHyq3bJ3MbmgN37TqQOs9QaPZXwVSsmVIswBgmlPf8q3CprVLzTmSptkMfyV8q+JNzzKxSQHIrNC/iPFatkHPE94lZA+BNstdlFsJC5Rm9X7DG6/nG+rvfIbwdH8cCIyavhL4qZkZ6+gfLyK6zzobAs6OjgSM/bBRmc35za2k0Ik7EAxzo+NC8YYeNCyyVDCDA3bCOUxqBzR1wAaHoDbmdfrjruUkj62PE5lAGdaBKIS8y0A1yB350C55B8HtnRd81ptk8OnhrppEs4B/c2z5DqmwWateAxUGqX/fkQ38oVk+24xmqAvtf17r0OMDnQmyCpXWbKJ3xtRrjsCE4WO3lOWGeA0DM0F8fz5htrFcMpNTIIy0tITl6UQzf7Ch64L7IYdnST5jiLbVI/4GMnxAZcVsNeK2uLofPdyMbVOmkVwnXPwwp+UetPRqHJ9RHsLlKH5VP8b/yumuQgFrtEQxbBkVNIEfZ6D/66EAmr24h6krFaJ8108q4EhVjtFHCcQwitERMM4HEQ9yY70i1bqJsu5tOCd8/APH7Y4v+E4e09UMK36LUnTM0ibBjo7K9X6ODp2ZfFb6znl0UJgHLIA== 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:(136003)(396003)(39830400003)(376002)(346002)(366004)(42606007)(38100700002)(316002)(1076003)(54906003)(6666004)(66556008)(66946007)(66476007)(2616005)(6506007)(6512007)(38350700002)(86362001)(52116002)(26005)(508600001)(36756003)(4326008)(8936002)(5660300002)(186003)(7416002)(6486002)(44832011)(8676002)(2906002)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nnsebXso+TZI+4FtyKK8dfPVyERSXSeITBWGj/dWFBSwXgGLBbHJ1QPayHZR8P99j5g46YLLkv7oGoZHfMiCwfv6XvXFIaJ40xyf2vLEIc5rAFDbGbSaP0b61HRzoHITYgVzfjr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YnkpLQZF2TvtBKB3zqEGVAqzfAF479yMbmpATt7iuZHP1NJvt2uxx85wp48NFAiTJef6QzddC9xFCmaNoR7oKpsDka98BL0j54ikDyHsgS1muW5GpBaPXWrVx2cs4QuxdiO0/yozDmzE3y2LLqm1BRcarIv+nefKZaUZ+kd/BGpuYCcK5qBFx7bnnnd/LfWLoGH4DmZtaPi1XsLoBCx0wU/5BIpLh+cVMS6mvVOqbfyqcgVgHpCkjVsf0rmOMDkAP2sb5HVv8fz+myfJ7WTGNWaJ6ZoBDhSxPa9kFYDMJjOI9IveoILVqifvRIZaFA+QH8PL8P0kiiIbYjgs1yTaiApxvtzULmTSKI6mwqYF738qarskVSAzwM4shHxA4eCt4pY9SlVRfMg7d1BxSbVvy/B/30bzH5f8tsjEsTaSsf0kIGibgYdpcsvpSCzmyljfJ8o9udA494pzZxiwiuwbEExnID+Xam491LIOvmnEi2uETQWVTR6pY9HLo= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: d6c74d9c-eeaa-4c52-6d55-08d9ca8894e8 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2021 05:03:41.3509 (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: bPkmx5Tomlk9s45CTm/gcnON+xGpD/moOzT7Ycq97Ma2BcMInIoP3ZxUp5sHSgszfbVazVe0hcOea2sigZ1a4Kco7ooylRdzz30aLeYxGcw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR10MB5441 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org pcs-lynx.c used lynx_pcs and lynx as a variable name within the same file. This standardizes all internal variables to just "lynx" Signed-off-by: Colin Foster --- drivers/net/pcs/pcs-lynx.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/pcs/pcs-lynx.c b/drivers/net/pcs/pcs-lynx.c index 7ff7f86ad430..fd3445374955 100644 --- a/drivers/net/pcs/pcs-lynx.c +++ b/drivers/net/pcs/pcs-lynx.c @@ -345,17 +345,17 @@ static const struct phylink_pcs_ops lynx_pcs_phylink_ops = { struct phylink_pcs *lynx_pcs_create(struct mdio_device *mdio) { - struct lynx_pcs *lynx_pcs; + struct lynx_pcs *lynx; - lynx_pcs = kzalloc(sizeof(*lynx_pcs), GFP_KERNEL); - if (!lynx_pcs) + lynx = kzalloc(sizeof(*lynx), GFP_KERNEL); + if (!lynx) return NULL; - lynx_pcs->mdio = mdio; - lynx_pcs->pcs.ops = &lynx_pcs_phylink_ops; - lynx_pcs->pcs.poll = true; + lynx->mdio = mdio; + lynx->pcs.ops = &lynx_pcs_phylink_ops; + lynx->pcs.poll = true; - return lynx_to_phylink_pcs(lynx_pcs); + return lynx_to_phylink_pcs(lynx); } EXPORT_SYMBOL(lynx_pcs_create);