Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3401142rwb; Sun, 25 Sep 2022 05:58:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6QgaXkJL/YTtyFHigUt78Iy6SOpWZGI2w1Wl51bmMJcxACQx7NB2wBLtBybYjDZwqWNYVJ X-Received: by 2002:a17:907:8a23:b0:782:6a5:6dd5 with SMTP id sc35-20020a1709078a2300b0078206a56dd5mr13730401ejc.581.1664110731596; Sun, 25 Sep 2022 05:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664110731; cv=none; d=google.com; s=arc-20160816; b=PQ77dE7QBwDQTSTgMp86XutV2G5e4JRygiu8rt2YKNM/cu6zIBo7Ykcw4pMTSTGFfz shZXpFtONAX/fFU8U/yJbeWtSwBd+/bJ2Kkk/85AlkgiAeYOv+ha/zkEx5mYogKr4pot +qDJmMchsN+00+z8dJQvrian8ztR4JyM9u1crAAh5GjczOU0YrlaGOtw1QDKbuXbL2Vw zCK2xJlNDdlT6wKSKhNhhfmR3qvf9QKLZMB6ENWZfYXRG1MGgv0B1cvQhP2gMXjnpYnt PwJq/fxfQDmkrMypvjs1vicdOGZIpTY89apA2xjsWnYotMzYoYf/HklIv7GtnLJa5tp8 xavg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=diwG095Om39HDPi0BNqcsa3GmpPv+4Pnc7y40eZvGcE=; b=Z+R1ZI/hJlhtfLKkMkyE3AIhCHkd6dyLLqtBsTn/CtRHLMSct6S2MGUPIRBG9AKnn4 H5XAP4O+6cyL4+timgyCgbPIpduGbg/qMCzJUXXz1fXz4NUPzFN1DoQtV/i70SQ/w+8v CEMz8lJga0ciefoV2p0uMh+MUYGV3yAJFh4HwH0VYs2ftqE/3D0trinMKmtoX3dTUO1W iX4YIxefbbo54vPDdBLRmlF192c3sgtLrbU+etuGPrIzy+KdUBEtYs+IjKusXQsiPStM TdxJy3194Gpk1HZdXSso5NjUMwArLjM+C5Bv56uQjY/CUDF6Jff2Bb0d5ZED/J4Yf23t +Ryw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@valentin-vidic.from.hr header.s=2020 header.b=sD2FdlIJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=valentin-vidic.from.hr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ev4-20020a17090729c400b007317d093e6csi10767517ejc.808.2022.09.25.05.58.24; Sun, 25 Sep 2022 05:58:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@valentin-vidic.from.hr header.s=2020 header.b=sD2FdlIJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=valentin-vidic.from.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231883AbiIYMiU (ORCPT + 99 others); Sun, 25 Sep 2022 08:38:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231169AbiIYMiS (ORCPT ); Sun, 25 Sep 2022 08:38:18 -0400 Received: from valentin-vidic.from.hr (valentin-vidic.from.hr [IPv6:2001:470:1f0b:3b7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C6802EF0F for ; Sun, 25 Sep 2022 05:38:17 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at valentin-vidic.from.hr Received: by valentin-vidic.from.hr (Postfix, from userid 1000) id 9D3AA28C96; Sun, 25 Sep 2022 14:38:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=valentin-vidic.from.hr; s=2020; t=1664109493; bh=sI5bSDz03qw9PgGUZ6xzO739DROzd9HDc5NcK+8TBOE=; h=From:To:Cc:Subject:Date:From; b=sD2FdlIJxv89+b0FdQl0JyDMjw9uyYZRP2n0trHwg0HlLcAPyO5ruu6ce+s1K5ZZE F3LMZ237chIWEA8ktWbtVM95DEHuJ+cJAMZ3hIvtXoDYTgEiqn9/1C34Lc4smVhPRs ehkMg03WvdzybepfguHF/FgKhuT2UayFEhDl7QoeuqkRBNkcdwWSKwBV1fIgeqd2Q5 DG2n2QGrZoA44u8AAWTWmQx6IpwHc5w7lPqF9Hy3oA3Sn18vScusa97IrrGH31itR4 TvLaLG+Oj8BVLzwfXW8B+0Pt/L3ITZeUisWJPkhQbTALv3454vG47UBXpgI9453sU1 Biik47eHomhGXMDUw1Zbs8qQenZSOM0FgphN+/apIrwGFwDMapDMtU3kQRd7uS4sf7 bcsVwArSUMsPxvEf3Zb2npPkKVtW51VhSr15UzEKPDDqUYaGbCVCcTY9fitxKBPzyz KaVYBM9rJOpQBizSQ5c0PwvAuwOuuHQNocb4UFaXyy//adYX+T6xlGxY5hGJPClO0A GiNUz5dWu15lGA7XefoOdp/fS6zWCGVjjPa4b8eET7FOX2RQRup+7DF7b3uQqz8VOc Am/uu5QmXJowlc7RUotzobk5WM9aC+0Wu93daK/V4A/wd8Sm1OKwuMjDW/iMFkmuF4 IySMGKYyLwYj3tURR4nZPWT0= From: Valentin Vidic To: Greg Kroah-Hartman Cc: Philipp Hortmann , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Valentin Vidic Subject: [PATCH v2] staging: rtl8192e: fix CamelCase variables Date: Sun, 25 Sep 2022 14:38:10 +0200 Message-Id: <20220925123810.2492865-1-vvidic@valentin-vidic.from.hr> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix checkpatch warnings for variables: LinkCtrlReg, DeviceID, RevisionID, IrqLine. Signed-off-by: Valentin Vidic --- v2: rebase on staging-testing branch drivers/staging/rtl8192e/rtl8192e/rtl_pci.c | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_pci.c b/drivers/staging/rtl8192e/rtl8192e/rtl_pci.c index 886bf4ba2adf..81e1bb856c60 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_pci.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_pci.c @@ -16,9 +16,9 @@ static void _rtl92e_parse_pci_configuration(struct pci_dev *pdev, struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); u8 tmp; - u16 LinkCtrlReg; + u16 link_ctrl_reg; - pcie_capability_read_word(priv->pdev, PCI_EXP_LNKCTL, &LinkCtrlReg); + pcie_capability_read_word(priv->pdev, PCI_EXP_LNKCTL, &link_ctrl_reg); pci_read_config_byte(pdev, 0x98, &tmp); tmp |= BIT4; @@ -31,28 +31,28 @@ static void _rtl92e_parse_pci_configuration(struct pci_dev *pdev, bool rtl92e_check_adapter(struct pci_dev *pdev, struct net_device *dev) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); - u16 DeviceID; - u8 RevisionID; - u16 IrqLine; + u16 device_id; + u8 revision_id; + u16 irq_line; - DeviceID = pdev->device; - RevisionID = pdev->revision; - pci_read_config_word(pdev, 0x3C, &IrqLine); + device_id = pdev->device; + revision_id = pdev->revision; + pci_read_config_word(pdev, 0x3C, &irq_line); priv->card_8192 = priv->ops->nic_type; - if (DeviceID == 0x8192) { - switch (RevisionID) { + if (device_id == 0x8192) { + switch (revision_id) { case HAL_HW_PCI_REVISION_ID_8192PCIE: dev_info(&pdev->dev, "Adapter(8192 PCI-E) is found - DeviceID=%x\n", - DeviceID); + device_id); priv->card_8192 = NIC_8192E; break; case HAL_HW_PCI_REVISION_ID_8192SE: dev_info(&pdev->dev, "Adapter(8192SE) is found - DeviceID=%x\n", - DeviceID); + device_id); priv->card_8192 = NIC_8192SE; break; default: -- 2.30.2