From patchwork Sun May 28 14:51:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 99905 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp995131vqr; Sun, 28 May 2023 07:53:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5S6VNMuh10iSja0x51BWyFr5nCA1dVqUWAFtz2cp4RtF7N0zqbp4VCregtulbupXns4lja X-Received: by 2002:a17:903:1249:b0:1ab:107b:c127 with SMTP id u9-20020a170903124900b001ab107bc127mr9191639plh.59.1685285616769; Sun, 28 May 2023 07:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685285616; cv=none; d=google.com; s=arc-20160816; b=r0wt4hDk3OQFFaySE0xoOc0BS8uxMvWH6cR0zFFo3IThJRQCaO1JxkAt2lo2HO+6SA HXZf5QO4LDvlodUdvGI66eJmwBc+vV+RgVrOAS2CLSuF1wPdP5jBUCqg6vfJSRjqkj5o dOvxQGWEy50EsfSZcmemFye/TTZmBL/MRgHuvZYjUZA0itYTSbdCNkvVK3XpQtovNpyS FiSmYRAxBX9fAS1uVcqV0MQCy1zHsgNN+mTF/b2xLrYhQTL+8CzEUeGTFZVzNShRqgwV 6c1XNPiCbfb4gT+vP81IsMD7WPMEX04dcivaUT9wwUMmCg9FXY8MXWkmlmcs0PfZg/Po dotw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=cDqIyCgpLYXTC8W2bqF9+g0yU2kwPgX3pJEbL1qQiTM=; b=fjR0k7l/zouv3oEqMVAdUEgW67Or8ehkqfmO6QpZ77EROSDyrjN+5z/4imHOAA8Hrp dDzPbJr2aOsdxwDl80EqoPQDsR4I/YZaSrKyeHhWInkEuJhdjfDvX7FE2n0u9zqqtmoy W3MYOUULKh1LU2P95ENG+D60UQidbJ36bV049lZfcIghtS35K4JmkqHs52K1Orund9aG aHkodQTuIrhZ26GFQTk2P4Gxnz/by/MPlE7u0dNZ5ns44DtjBh0CiyhBV2iiEz7ZVrNq VQ7pzswJGrzhCEmD4Blf74JgPr/d0RzqJrcChgkAoj1wAhvpd59DOz46HoKDi+bJLjbY jdXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Fau3+U+T; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t8-20020a170902e84800b001ab109ea531si5275414plg.558.2023.05.28.07.53.20; Sun, 28 May 2023 07:53:36 -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=@gmail.com header.s=20221208 header.b=Fau3+U+T; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229512AbjE1Ovm (ORCPT + 99 others); Sun, 28 May 2023 10:51:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjE1Ovk (ORCPT ); Sun, 28 May 2023 10:51:40 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E09D0C3 for ; Sun, 28 May 2023 07:51:37 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-64d2ca9ef0cso1671631b3a.1 for ; Sun, 28 May 2023 07:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685285497; x=1687877497; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=cDqIyCgpLYXTC8W2bqF9+g0yU2kwPgX3pJEbL1qQiTM=; b=Fau3+U+TYnVe5J8D1aUuY6YkMWTA1ZPfVkCUff9o9bowf9SO0G3lDTGg703wBkOVcg SuyJnIK0bYa+D4Utszt8Yy9Yr7tQ5f9QJTNUQJjNUdCydV1oibTOfYcrU+klOFbwP3Q6 IkmmXC2a2x3+uVOSq2QlUhKofFHMG52/XEybqHfTsw+iOdOpERZyXjUwrKfpZTgoPJZ2 e8UMkX4CaSKQaIb9+ddH/ejRTJdF6ehUlQ/IMHpsjUG/RcDV4bg6tkFihv1+QU1LOTg2 j36pqQxRdpdPsTm6hd+TC+UJYaIjJ+47vL+G8+V0OF8mkNeViBE59FSznLgsu2ljdXWK Mr4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685285497; x=1687877497; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=cDqIyCgpLYXTC8W2bqF9+g0yU2kwPgX3pJEbL1qQiTM=; b=ghePMa/w8h7d+Or7/767VezjuExB4mLZAXedN52ETEt1Zr1FidoF6U95gw0th3QqZC sXE4jkbk+ehBlUDmv4kzGrl0QBpXxj2Ty9epoNwDr5iSLjTLsz0i5tgWGe9OfQWbhfhB Epa9EXUUm/ivVGDip1a25N0/UAfWV4HB5LKcaZOENgFE4rDGckPNufWHWTHO1dUMKDJx DI4Uy6LT68VF1bDzqLy9osNNLi9ITA9rcUdpeGkuVqu2GLua1QKZD32a3yNS24f+46sZ 5W877Nw1nKEOvb9EwEeL04cA0kzfThOE3SEXwWbTgtvaXxx9sQj1ijDu+9sJC8XPwcyH F2eg== X-Gm-Message-State: AC+VfDzqxbIe9Kfin+RbU2lr6axyWWQRvvI6Nf8bw+i/HqY4q0LqrlMO Yha00sQTlq1hVFUCRLIFqDY= X-Received: by 2002:a05:6a00:1949:b0:646:421f:500b with SMTP id s9-20020a056a00194900b00646421f500bmr11795884pfk.10.1685285497227; Sun, 28 May 2023 07:51:37 -0700 (PDT) Received: from yogi-Zephyrus ([103.251.210.199]) by smtp.gmail.com with ESMTPSA id s9-20020aa78d49000000b00643889e30c2sm5273135pfe.180.2023.05.28.07.51.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 May 2023 07:51:36 -0700 (PDT) Date: Sun, 28 May 2023 20:21:33 +0530 From: Yogesh Hegde To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] staging: rtl8192e: Rename variable SetWirelessMode Message-ID: <5a1ee0e9ef53ebe6085c14dba08c438862ec992e.1685284727.git.yogi.kernel@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767150051231075557?= X-GMAIL-MSGID: =?utf-8?q?1767150051231075557?= Rename variable SetWirelessMode to set_wireless_mode to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Yogesh Hegde --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 2 +- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_softmac.c | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 17b70dde7eeb..699c4accf2db 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -716,7 +716,7 @@ static void _rtl92e_init_priv_handler(struct net_device *dev) priv->rtllib->check_nic_enough_desc = _rtl92e_check_nic_enough_desc; priv->rtllib->handle_assoc_response = _rtl92e_handle_assoc_response; priv->rtllib->handle_beacon = _rtl92e_handle_beacon; - priv->rtllib->SetWirelessMode = rtl92e_set_wireless_mode; + priv->rtllib->set_wireless_mode = rtl92e_set_wireless_mode; priv->rtllib->LeisurePSLeave = rtl92e_leisure_ps_leave; priv->rtllib->SetBWModeHandler = rtl92e_set_bw_mode; priv->rf_set_chan = rtl92e_set_channel; diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 4aa5ce9f7792..03f8703f5def 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1710,7 +1710,7 @@ struct rtllib_device { enum ht_channel_width bandwidth, enum ht_extchnl_offset Offset); bool (*GetNmodeSupportBySecCfg)(struct net_device *dev); - void (*SetWirelessMode)(struct net_device *dev, u8 wireless_mode); + void (*set_wireless_mode)(struct net_device *dev, u8 wireless_mode); bool (*GetHalfNmodeSupportByAPsHandler)(struct net_device *dev); u8 (*rtllib_ap_sec_type)(struct rtllib_device *ieee); void (*InitialGainHandler)(struct net_device *dev, u8 Operation); diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index 7c4cba6dcf46..bbb1f2f0d35b 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c @@ -1503,7 +1503,7 @@ static void rtllib_associate_complete_wq(void *data) netdev_info(ieee->dev, "Using G rates:%d\n", ieee->rate); } else { ieee->rate = 22; - ieee->SetWirelessMode(ieee->dev, IEEE_B); + ieee->set_wireless_mode(ieee->dev, IEEE_B); netdev_info(ieee->dev, "Using B rates:%d\n", ieee->rate); } if (ieee->ht_info->bCurrentHTSupport && ieee->ht_info->enable_ht) { @@ -1687,13 +1687,13 @@ inline void rtllib_softmac_new_net(struct rtllib_device *ieee, (ieee->modulation & RTLLIB_OFDM_MODULATION)) { ieee->rate = 108; - ieee->SetWirelessMode(ieee->dev, + ieee->set_wireless_mode(ieee->dev, IEEE_G); netdev_info(ieee->dev, "Using G rates\n"); } else { ieee->rate = 22; - ieee->SetWirelessMode(ieee->dev, + ieee->set_wireless_mode(ieee->dev, IEEE_B); netdev_info(ieee->dev, "Using B rates\n"); @@ -2276,11 +2276,11 @@ static void rtllib_rx_auth_resp(struct rtllib_device *ieee, struct sk_buff *skb) } /* Dummy wirless mode setting to avoid encryption issue */ if (bSupportNmode) { - ieee->SetWirelessMode(ieee->dev, + ieee->set_wireless_mode(ieee->dev, ieee->current_network.mode); } else { /*TODO*/ - ieee->SetWirelessMode(ieee->dev, IEEE_G); + ieee->set_wireless_mode(ieee->dev, IEEE_G); } if ((ieee->current_network.mode == IEEE_N_24G) && @@ -2615,7 +2615,7 @@ static void rtllib_start_ibss_wq(void *data) } ieee->current_network.qos_data.supported = 0; - ieee->SetWirelessMode(ieee->dev, IEEE_G); + ieee->set_wireless_mode(ieee->dev, IEEE_G); ieee->current_network.mode = ieee->mode; ieee->current_network.atim_window = 0; ieee->current_network.capability = WLAN_CAPABILITY_IBSS; From patchwork Sun May 28 14:51:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 99907 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1000053vqr; Sun, 28 May 2023 08:03:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7BVgq8HnwUk3cDDj8t5RFjU6G7ueCuXq2csnPjlgtmEQnRtLMjJINWv9qVKDJdPvTNYKCO X-Received: by 2002:a05:6a20:8410:b0:10c:5ff4:8bb9 with SMTP id c16-20020a056a20841000b0010c5ff48bb9mr6629582pzd.58.1685286224396; Sun, 28 May 2023 08:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685286224; cv=none; d=google.com; s=arc-20160816; b=Lp9pUShL72Uolt/uJdPgoARevOxAZLdzuX6FZh4YRVqmKr2D0wglPDO2/EDUJDsD26 7+QlwsdEaxLRxvwXGuUbqeS2X+qjyCyZTulQ6vUcgfzW3TnKVuj7/LJMM9zTOA7KePG0 ltUti7YAj22aJsBFIFhuYGvWlW/SL0hKc2F26fRvFg4W7e42LKqVlLSYA1jvRbdymfMW PPUBHtnQ/pVqKjJWJDWNtf+aSf/ycstSrUAv7oTfb8WIzMWKGb5Dx/2uwdl0s7OA9qQ1 lPy4rthuRuLjKYlSthlQzrjaZC3RXxIdRwME/h6KrnNw0Jew+gqyHdC6MYZFPwvhF99h ohsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=AMXq3Se3bHG0JmLuoAfId05SxF5hYAXzJCK5u4/OX2o=; b=k/2jkwA5DuovjRevc/tekZKKq70cjhXi0qd2QaKp/pauS+7RmI9ra5FrP/jwKaIvS7 jx9343xSXaWZiY4/T74gBfKlEMeUixj4KcDjPQ7vxShXR0HFVBRXRTh+wVr4dyp4/Sai 22mZkFpKT8IsNgsDIIdzgUnIzxffQQnGYAuiZ+JQc9XpZBY47hI83u+TCaqRuNky1wUA 8yDGyvJ8vwbJFkEJgkDFQF5ON2v/BrPRKkAePoqX+U/rj+GIBGw4t6ehxOSeku7+nxxa p1oFnA9VCv0DIR3k56WiGGeHZdV2VCAXLJTs/GKnbtyLyKwTrVDIIU6GcPTsgAc1peyu 2N4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=gRLW0Yxf; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 200-20020a6307d1000000b00520861f7c0csi6586123pgh.501.2023.05.28.08.03.30; Sun, 28 May 2023 08:03:44 -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=@gmail.com header.s=20221208 header.b=gRLW0Yxf; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229531AbjE1OwI (ORCPT + 99 others); Sun, 28 May 2023 10:52:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbjE1OwD (ORCPT ); Sun, 28 May 2023 10:52:03 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6CD2E4 for ; Sun, 28 May 2023 07:51:55 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-64d18d772bdso2942994b3a.3 for ; Sun, 28 May 2023 07:51:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685285515; x=1687877515; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=AMXq3Se3bHG0JmLuoAfId05SxF5hYAXzJCK5u4/OX2o=; b=gRLW0Yxfwb+XrSzjRIIERjetDhUxnfFggpD5lo0EfBfymV6snvPEJPKwT3VodYaJBF /PT8CIwj4TKB+rHso92lVZKpjumhhqRFYYbUdpBuxeOrvczFF+Wj7fc7EQbqpfOdDCPG /VBH+PQOO5n+SSiPyx/kDu8h/5SKEnxitMSpeNa2OOWUcHevFki3rWYUMTgrAVpVZh1G 3ev3DBlTBgXu8QRnj0lbddqYas2J3L9+rbt/r/Wamg4AGSNunnU9jO52p4dj61I4cGW6 57XDRyov5QsBxUN/51ihBu1voyB8ciYthgGShTWRUfmMq6FIvBzzttnRzm8tN269r53v Navw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685285515; x=1687877515; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=AMXq3Se3bHG0JmLuoAfId05SxF5hYAXzJCK5u4/OX2o=; b=aeVNFryRk9h5/Qey6MYZzyQzfsgCkBNgvuQYZr0EtY1liVToVyooT/kbRP6ipR7Bk6 mon9UN0EsTpnwsbpZDRbDPxY7S0mgtE0nxmaQYwBM2GoHwASSEtP+k/c+FjM5k9dePC6 SOyiDLQ9gwMJNG92DjHfeqzI+yMjOuBL1mcyY8fBX7hTsn3SL96CGetVGlETwGam/Oil leCWg30jV6mA/l7TmT3lPUGMCcMrTvPljnZZ6Di6mvZaApS9w3K6nwa72bcRg6AXY+wu F0tv63Kz/iXKsDRV57rnxsQQ9fiNC7ggaBjPhPtHXhkdVKBOmOPOSIBAKrXtw9JaCgl5 Z8ug== X-Gm-Message-State: AC+VfDw8RqX5urnInU0WO5H8NWwihMTIPn51cOXIyHIP+X+kG3Qhc1Sy ogELz/I+y7fMZ+ZOm/Mx6QjQ2tUaB3E= X-Received: by 2002:a05:6a20:4293:b0:10c:c407:92e5 with SMTP id o19-20020a056a20429300b0010cc40792e5mr6107889pzj.22.1685285515110; Sun, 28 May 2023 07:51:55 -0700 (PDT) Received: from yogi-Zephyrus ([103.251.210.199]) by smtp.gmail.com with ESMTPSA id n23-20020a62e517000000b00625d84a0194sm5264175pff.107.2023.05.28.07.51.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 May 2023 07:51:54 -0700 (PDT) Date: Sun, 28 May 2023 20:21:50 +0530 From: Yogesh Hegde To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] staging: rtl8192e: Rename variable SetBWModeHandler Message-ID: <673530895e8da53d956e73fbe4b5f97400cb8594.1685284727.git.yogi.kernel@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767150687788863352?= X-GMAIL-MSGID: =?utf-8?q?1767150687788863352?= Rename variable SetBWModeHandler to set_bw_mode_handler to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Yogesh Hegde --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib.h | 6 +++--- drivers/staging/rtl8192e/rtllib_softmac_wx.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 699c4accf2db..68e921a3a0a8 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -718,7 +718,7 @@ static void _rtl92e_init_priv_handler(struct net_device *dev) priv->rtllib->handle_beacon = _rtl92e_handle_beacon; priv->rtllib->set_wireless_mode = rtl92e_set_wireless_mode; priv->rtllib->LeisurePSLeave = rtl92e_leisure_ps_leave; - priv->rtllib->SetBWModeHandler = rtl92e_set_bw_mode; + priv->rtllib->set_bw_mode_handler = rtl92e_set_bw_mode; priv->rf_set_chan = rtl92e_set_channel; priv->rtllib->start_send_beacons = rtl92e_start_beacon; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c index fe30a291e64c..1fe504244437 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -835,11 +835,11 @@ static void HTSetConnectBwModeCallback(struct rtllib_device *ieee) ieee->set_chan(ieee->dev, ieee->current_network.channel); - ieee->SetBWModeHandler(ieee->dev, HT_CHANNEL_WIDTH_20_40, + ieee->set_bw_mode_handler(ieee->dev, HT_CHANNEL_WIDTH_20_40, ht_info->CurSTAExtChnlOffset); } else { ieee->set_chan(ieee->dev, ieee->current_network.channel); - ieee->SetBWModeHandler(ieee->dev, HT_CHANNEL_WIDTH_20, + ieee->set_bw_mode_handler(ieee->dev, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT); } diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 03f8703f5def..c30821a746c0 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1706,9 +1706,9 @@ struct rtllib_device { /* check whether Tx hw resource available */ short (*check_nic_enough_desc)(struct net_device *dev, int queue_index); - void (*SetBWModeHandler)(struct net_device *dev, - enum ht_channel_width bandwidth, - enum ht_extchnl_offset Offset); + void (*set_bw_mode_handler)(struct net_device *dev, + enum ht_channel_width bandwidth, + enum ht_extchnl_offset Offset); bool (*GetNmodeSupportBySecCfg)(struct net_device *dev); void (*set_wireless_mode)(struct net_device *dev, u8 wireless_mode); bool (*GetHalfNmodeSupportByAPsHandler)(struct net_device *dev); diff --git a/drivers/staging/rtl8192e/rtllib_softmac_wx.c b/drivers/staging/rtl8192e/rtllib_softmac_wx.c index d85a32d2d050..07a3d0c0f0e0 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac_wx.c +++ b/drivers/staging/rtl8192e/rtllib_softmac_wx.c @@ -359,7 +359,7 @@ void rtllib_wx_sync_scan_wq(void *data) b40M = 1; chan_offset = ieee->ht_info->CurSTAExtChnlOffset; bandwidth = (enum ht_channel_width)ieee->ht_info->bCurBW40MHz; - ieee->SetBWModeHandler(ieee->dev, HT_CHANNEL_WIDTH_20, + ieee->set_bw_mode_handler(ieee->dev, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT); } @@ -372,7 +372,7 @@ void rtllib_wx_sync_scan_wq(void *data) ieee->set_chan(ieee->dev, chan - 2); else ieee->set_chan(ieee->dev, chan); - ieee->SetBWModeHandler(ieee->dev, bandwidth, chan_offset); + ieee->set_bw_mode_handler(ieee->dev, bandwidth, chan_offset); } else { ieee->set_chan(ieee->dev, chan); } From patchwork Sun May 28 14:52:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 99908 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1006313vqr; Sun, 28 May 2023 08:14:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4wRhmQPndM98p87oNd4sto1igbSAjs9S4RL71dDmiEby+COF2RQsH94SGEgJYfwcGOUCY+ X-Received: by 2002:a05:6a20:a110:b0:101:73a9:1683 with SMTP id q16-20020a056a20a11000b0010173a91683mr6508141pzk.33.1685286853732; Sun, 28 May 2023 08:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685286853; cv=none; d=google.com; s=arc-20160816; b=fMT+ChW/KNXHMNXEkPnlIUlAwnRi5bhS1U1NR84f6Uio/dNSvRwx6SUTqHd/aN0a19 hGmft72ZTXgobO0uLhJ6jx/XwE6E8OiHt0Mh24JPk9oRrohcmxHnA5dZtrfkYpqiVpCc cmILPZy4792RK+xkEgV8il7UtbvF5sWEBnoUksK+gSSIuA5ed3VwWTUKiB/mbVvO+PwT IC1lzwo6hJ0/Pzua3o4aNIFc7c1R5EN022I26Rtup6xpNiC8leRb1z272nsUTsJcQ+Ql 0B2zcrANWkNIew+3kivBYQfNeAMFu8XHA4xgi24bkrdQ1fZg03zaPTts+bsuRjHJ5TX5 XDgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=SRB64WwQ13PETFGobSFGuFSAiAnCJdGoGNc6vJQKRDY=; b=oA2zsO9nCREzvclibw3IHkbtJUULpElZH2UF2D1PFIpSBFv0oURJHJ31NIC/h5imY2 MIr3H+v94pFDK7450Fip/R83aEdWXZmP/RcjJdWsN4Jf57Pg56ttYtR29cth9HFqUWuu JiPrWV/2hnq9+7Ph1m4T1ZECnLYBbVMGYctfQu/+rZs1oeijcxUCrxn4C9UH1NqnF9Q+ kG9f0WuEurV1ARpuw+0Wb4clDxYLf7Bb1K4JcYlOyxvbQgOYugaWCwCpbzVCj3TFCx3S vK+C5GYyZSSlazmwnr3V+JYlczfjoLw3wAzavfgL4PS8rgePDejyufNy5y2Xr6JKm1jZ C1Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=DtCTlEpk; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t192-20020a635fc9000000b00524db291facsi7072575pgb.504.2023.05.28.08.13.55; Sun, 28 May 2023 08:14:13 -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=@gmail.com header.s=20221208 header.b=DtCTlEpk; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229527AbjE1Owm (ORCPT + 99 others); Sun, 28 May 2023 10:52:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjE1Owl (ORCPT ); Sun, 28 May 2023 10:52:41 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62DBE9B for ; Sun, 28 May 2023 07:52:40 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-2566e60cc5aso425157a91.3 for ; Sun, 28 May 2023 07:52:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685285560; x=1687877560; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=SRB64WwQ13PETFGobSFGuFSAiAnCJdGoGNc6vJQKRDY=; b=DtCTlEpkzw0Agtsg7AhmIGhdzot0PT0VAAEEjzLp746i7Qj3vC67EK9EX+ErOfJz4c lf66Awib3+34g/ogoZ3OmgBXomAmxIJja8ktWr7wniHTjret40PWuPZY2rI/+Yr2njFU TrXoDvT/m4+HOCNuMC2HXKoY/r0LaK2I2MPplFtGwmCM5fsODarTLGdBlHhxrYeJCYCf FPrLWapm3XOOJPQ9DlNVY76oW0ypJRMkENq8cMjcBL73a3MYdqklq022htWQVTQ6Sr2w OGaVCEoM7gcJ3crZ84OsW7xsG0qQD6MD7jTEKJLftPt8tt69jbhEojRvMDYvT9xKR8Ni QxEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685285560; x=1687877560; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SRB64WwQ13PETFGobSFGuFSAiAnCJdGoGNc6vJQKRDY=; b=EojCx8V6Z32DoT6f4BSzhRxLVyzRNqoJ6BAEqVW7DJyWZByoNSbfVoAm2uqb15mN8r csXnpPi1rdVzNhTztFLHHUhMY7HXSK4At3OH6Nf2sRKkx2V9+oRdg2QQExfyNm6+ZbXp F0JVqOR/bS6oZXRZowx32BXRs1whdzmdBA0vYLYi68iyFDy4i/RH6DdChrFCzK878Xds V/mBE/wyr5fu0IQcMK164UAwQelqzKaQpAU5ppW+QXMx4zwdDWSchyXtlXTFTwvWu/gx U5QENLTr0Ez7ylWsn/XQ88Kh4r9N0NVvLJkL7e6HHPwlYOx0atnMUno2KJPTP9UbN1Xk F7ZA== X-Gm-Message-State: AC+VfDxo64MGgXqaog7nTs2yUBTLS5+MNrsWTN18lsJ8CZmD7EHOfnOK Sp11Th+obYylHMaBqdOQ9SoxtqKcAeo= X-Received: by 2002:a17:90b:1e49:b0:255:f114:fa9f with SMTP id pi9-20020a17090b1e4900b00255f114fa9fmr7962201pjb.3.1685285559671; Sun, 28 May 2023 07:52:39 -0700 (PDT) Received: from yogi-Zephyrus ([103.251.210.199]) by smtp.gmail.com with ESMTPSA id 17-20020a17090a01d100b0025671de4606sm991511pjd.4.2023.05.28.07.52.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 May 2023 07:52:39 -0700 (PDT) Date: Sun, 28 May 2023 20:22:35 +0530 From: Yogesh Hegde To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] staging: rtl8192e: Rename variable LeisurePSLeave Message-ID: <05f947b414f50d6f9e1be3de1216da777173d6ba.1685284727.git.yogi.kernel@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767151348139949913?= X-GMAIL-MSGID: =?utf-8?q?1767151348139949913?= Rename variable LeisurePSLeave to leisure_ps_leave to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Yogesh Hegde --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 2 +- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_rx.c | 2 +- drivers/staging/rtl8192e/rtllib_softmac_wx.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 68e921a3a0a8..b82d2b7aa26c 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -717,7 +717,7 @@ static void _rtl92e_init_priv_handler(struct net_device *dev) priv->rtllib->handle_assoc_response = _rtl92e_handle_assoc_response; priv->rtllib->handle_beacon = _rtl92e_handle_beacon; priv->rtllib->set_wireless_mode = rtl92e_set_wireless_mode; - priv->rtllib->LeisurePSLeave = rtl92e_leisure_ps_leave; + priv->rtllib->leisure_ps_leave = rtl92e_leisure_ps_leave; priv->rtllib->set_bw_mode_handler = rtl92e_set_bw_mode; priv->rf_set_chan = rtl92e_set_channel; diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index c30821a746c0..03898efea12d 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1723,7 +1723,7 @@ struct rtllib_device { void (*rtllib_ips_leave_wq)(struct net_device *dev); void (*rtllib_ips_leave)(struct net_device *dev); - void (*LeisurePSLeave)(struct net_device *dev); + void (*leisure_ps_leave)(struct net_device *dev); /* This must be the last item so that it points to the data * allocated beyond this structure by alloc_rtllib diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c index d44bf261de54..36bb2d24521f 100644 --- a/drivers/staging/rtl8192e/rtllib_rx.c +++ b/drivers/staging/rtl8192e/rtllib_rx.c @@ -1212,7 +1212,7 @@ static void rtllib_rx_check_leave_lps(struct rtllib_device *ieee, u8 unicast, if (((ieee->link_detect_info.NumRxUnicastOkInPeriod + ieee->link_detect_info.NumTxOkInPeriod) > 8) || (ieee->link_detect_info.NumRxUnicastOkInPeriod > 2)) { - ieee->LeisurePSLeave(ieee->dev); + ieee->leisure_ps_leave(ieee->dev); } } } diff --git a/drivers/staging/rtl8192e/rtllib_softmac_wx.c b/drivers/staging/rtl8192e/rtllib_softmac_wx.c index 07a3d0c0f0e0..4630976132ba 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac_wx.c +++ b/drivers/staging/rtl8192e/rtllib_softmac_wx.c @@ -340,7 +340,7 @@ void rtllib_wx_sync_scan_wq(void *data) chan = ieee->current_network.channel; - ieee->LeisurePSLeave(ieee->dev); + ieee->leisure_ps_leave(ieee->dev); /* notify AP to be in PS mode */ rtllib_sta_ps_send_null_frame(ieee, 1); rtllib_sta_ps_send_null_frame(ieee, 1); From patchwork Sun May 28 14:52:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 99906 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp999873vqr; Sun, 28 May 2023 08:03:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7O4SEHlukjlmKRJvWeu9XjyGy7Gs+jqf6PU0uhC2trYvUM4VXEXsrid436TFc3AWpTdqzG X-Received: by 2002:a17:902:ee55:b0:1ab:19db:f2b with SMTP id 21-20020a170902ee5500b001ab19db0f2bmr9982834plo.36.1685286207432; Sun, 28 May 2023 08:03:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685286207; cv=none; d=google.com; s=arc-20160816; b=iSR3dnOaySBEIy4SOxa8qHjFOhh0rGBWRXZMIhTAHtUkUh96wyfDxliuDYtjIp6kgx Q/10DBZLZsRj2SwKqWIfQ94q5nGxlwmrjhJvRxM0fAynx0AUBHFz1gDq46SPDsiyqDvb KtlQj07V9f6VVCDeqfwEl63oHS0TpbrRQYKcYPM4LTl7uiVW3n6kGAJDLs7vyzIq2map MPsi7ks0qJOX+4iw9O12OYuYX0vTBeDuDtaAT5MfZtfOQSGPApHuWRFbcRB2Ag0Gkd33 kTNmhXv2xtozQcGUKuNnk+W8PzdQPS8gRtMfoQYIhec3GWxQvmAVqNxGdAsNRYY34K0t R2zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=h281HgpjzK4XEri7LVFQyvfUqK1gjl7k3qozv2JOCAE=; b=SF11qgd2474mbvo0C8MQ3Posk4DUP7SuGBlSFDFQPM3SbCGlqYn1bCK56FXpPTzt3C gfFooL29AWN9YqIJ9B9a9OIYChBFeNZPPx/auorE575TEGQrfndvgvmELz8Girp/PG1e M9rrH5JP3r1utc6XdwQzAIf2wRrTeILYSo3y3jmh8qHbY5qR2ieqqbTxsRCfUURi5LHQ CTu+eQedllu0NRCHqKT70FUzld2GmbimZY1hDANYZl4JGEkaLW2r90WQQjwypsmM8La8 c3O8+LVvuilB/7Nsw9Y9hONvymeFdC0hF7edrsKjAGvdKfB23dKRiEt6B7IDzpV4L5QK HMcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=nR1fI3qj; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w6-20020a170902a70600b001a1d76e7214si2713872plq.111.2023.05.28.08.03.10; Sun, 28 May 2023 08:03:27 -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=@gmail.com header.s=20221208 header.b=nR1fI3qj; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229539AbjE1OxE (ORCPT + 99 others); Sun, 28 May 2023 10:53:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjE1OxD (ORCPT ); Sun, 28 May 2023 10:53:03 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B08F8B2 for ; Sun, 28 May 2023 07:53:02 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-64d2b42a8f9so1964712b3a.3 for ; Sun, 28 May 2023 07:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685285582; x=1687877582; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=h281HgpjzK4XEri7LVFQyvfUqK1gjl7k3qozv2JOCAE=; b=nR1fI3qjXN5dxhT/H2mc44EsCADS2cSqRN83AR2w6D7+whusEr4zT7A9oYtZ7S570u OUENjdpgmBAqIFDzB6S7oRYbVTiOt3/aiF3JdTQD4Hp4sX1PKLIXmj7e3GagxO6SIQk6 aVcKI1k8fsja0rlelkTzJ+Xmg83K8tKW8efrEM5EhjQsnQm1D3DBinIXaVT4SnpINsMg Zjp4CGdAv8AmtQrkah+AvE8hi2gWMNvmj2NHwE60e5VbxFG8MGgEQAUc/soBbNEVKomg NzmL15HeHOkpeXs3Sr9Qb5rOYq9HC5ogSQN+D3uPRJTJSbo/nM8k4VkJ3wEwVlI1oyev sqjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685285582; x=1687877582; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=h281HgpjzK4XEri7LVFQyvfUqK1gjl7k3qozv2JOCAE=; b=QE3YZIkxWXGssroTg8ESnbZsp72F3OTaLSctIoakGrIegMh9qmkNksk700rjgVJUKp QkyvquXcszfJuD6UIGSsdr/Zc2IjOfezA9qodTXxHjZIXht6Mluc+ZbRMo1UemsdWu5/ SHOVzPRZfgQM1H3OlLUacLrpLJ/Uio/3eon3u6wRza6DX22yWITV2Z+oFUwj2MylTwet gz9q11KjXjji/TY3Pu3hpLdmDlDpECayMrCk7XsGwdM/tbwgYpGaQgkJF3kZiqU96CIZ XKNToPXcdkibveILr+JCjtf15UAX1d2hPQRP0xIDG/SRa5rrfbnGywBwdmitVY+6iAvV i4YA== X-Gm-Message-State: AC+VfDyFsZMquBoPYsccm24BHOrPrJdE8Cbe5YyEWIdvjFtwrDRlo5t6 l+jeBbo8aEppKxRnIVgWzuA= X-Received: by 2002:a17:902:ec8c:b0:1ac:6d4c:c26a with SMTP id x12-20020a170902ec8c00b001ac6d4cc26amr11738757plg.14.1685285582106; Sun, 28 May 2023 07:53:02 -0700 (PDT) Received: from yogi-Zephyrus ([103.251.210.199]) by smtp.gmail.com with ESMTPSA id bg8-20020a1709028e8800b001ac591b0500sm6385884plb.134.2023.05.28.07.53.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 May 2023 07:53:01 -0700 (PDT) Date: Sun, 28 May 2023 20:22:58 +0530 From: Yogesh Hegde To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] staging: rtl8192e: Rename variable InitialGainHandler Message-ID: <721239f5b292ba9ffa973f5fea81069aaeac34a7.1685284727.git.yogi.kernel@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767150670013895553?= X-GMAIL-MSGID: =?utf-8?q?1767150670013895553?= Rename variable InitialGainHandler to init_gain_handler to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Yogesh Hegde --- drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c | 4 ++-- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 2 +- drivers/staging/rtl8192e/rtllib.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c index 61fd84ca58d2..4fceb5ee51d5 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c @@ -1130,11 +1130,11 @@ void rtl92e_scan_op_backup(struct net_device *dev, u8 Operation) if (priv->up) { switch (Operation) { case SCAN_OPT_BACKUP: - priv->rtllib->InitialGainHandler(dev, IG_Backup); + priv->rtllib->init_gain_handler(dev, IG_Backup); break; case SCAN_OPT_RESTORE: - priv->rtllib->InitialGainHandler(dev, IG_Restore); + priv->rtllib->init_gain_handler(dev, IG_Restore); break; } } diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index b82d2b7aa26c..eb20b8014997 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -734,7 +734,7 @@ static void _rtl92e_init_priv_handler(struct net_device *dev) priv->rtllib->SetHwRegHandler = rtl92e_set_reg; priv->rtllib->AllowAllDestAddrHandler = rtl92e_set_monitor_mode; - priv->rtllib->InitialGainHandler = rtl92e_init_gain; + priv->rtllib->init_gain_handler = rtl92e_init_gain; priv->rtllib->rtllib_ips_leave_wq = rtl92e_rtllib_ips_leave_wq; priv->rtllib->rtllib_ips_leave = rtl92e_rtllib_ips_leave; priv->rtllib->ScanOperationBackupHandler = rtl92e_scan_op_backup; diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 03898efea12d..d361d18d54f6 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1713,7 +1713,7 @@ struct rtllib_device { void (*set_wireless_mode)(struct net_device *dev, u8 wireless_mode); bool (*GetHalfNmodeSupportByAPsHandler)(struct net_device *dev); u8 (*rtllib_ap_sec_type)(struct rtllib_device *ieee); - void (*InitialGainHandler)(struct net_device *dev, u8 Operation); + void (*init_gain_handler)(struct net_device *dev, u8 Operation); void (*ScanOperationBackupHandler)(struct net_device *dev, u8 Operation); void (*SetHwRegHandler)(struct net_device *dev, u8 variable, u8 *val);