Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5154127rdb; Tue, 12 Dec 2023 23:41:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IE5vbCbkVPo4rGrPFMBO1TYYz53SK88475IEH2LOUSHxB0/IMWXIyPN7hl8EQ1HAcEl2Wuh X-Received: by 2002:a05:6e02:b46:b0:35d:4efa:e8eb with SMTP id f6-20020a056e020b4600b0035d4efae8ebmr12140865ilu.7.1702453281642; Tue, 12 Dec 2023 23:41:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702453281; cv=none; d=google.com; s=arc-20160816; b=tvazEKg6e8/eqTfaqsVVHq7bb+6Gp32tQ6fxtf1pFbyP2lECCM/Ir2t8+FlJ2EHYjK Xf3U3OHjbJYL3bXUEZbSpgc+pfGNMXJlHukcf9b65D4fqtpBVQqWsM9Ke/S1mVS+K4gs +PVRSVddeTe2iIFJTx0Np8mSPCWa8yr+31XMuJ2XNP7zB2d9PZ7JhwRufDs6Gz90+yfa DWzmNZ1Oc/1Gqg8fcWIUXaw8VuR/YN6wPmh6F1V67wuvnGugBU2quXlyMKEnePWDc++F ifb62Pl10IgTMrP0e/Zs6G6+FA30wsx3jYGV9DL/8G/S3KXDztnqc7Qwx3wU/g2XRwhZ PjrQ== 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:cc:to:from:date:dkim-signature; bh=v0Ly6HERW61XKD/YdVWYbpue1eQaDfbZ8RVVo6+xYP4=; fh=A01rJNiLAjiZnkD9zc9Bph8/gLaq+jX5++giWjwc20s=; b=C3M2m4l+CtPr8Ao+j7wDQsC/BjeRKESezpSC6bslVXnWjWaCoYXNgpl7IT4GLdDUMe NhtWs5vMUCBsklgfBc967/LzV6HPuye60GkN5AbUjOBMoieZq6Q1jXZF+1RKuBjQhq3D jX96ZufAmQZ7Zp8Rkobl5RG4fbKkO8SL38O/Mtzf0LFPuJFWJqdjs/FVA2tMeckGAuN3 JFhuB6h3/Gt6awA00FBspS0L1xPlYK76pUkXmY6B1HUJHkQINk/EAgLhGIfn6kVL3tr7 aM07dxuXlZMYWgN4d4lCd030wlCszwrQZ2s28VdIjAIiHVTjiZVGbGENXd4dyGzASeAJ A02A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rewUZHK1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id s18-20020a170902a51200b001cf5cc3029fsi2297730plq.548.2023.12.12.23.41.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 23:41:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rewUZHK1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7AF1580AE20A; Tue, 12 Dec 2023 23:41:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378718AbjLMHke (ORCPT + 99 others); Wed, 13 Dec 2023 02:40:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235247AbjLMHka (ORCPT ); Wed, 13 Dec 2023 02:40:30 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D545109 for ; Tue, 12 Dec 2023 23:40:36 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-551ee7d5214so1229432a12.0 for ; Tue, 12 Dec 2023 23:40:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702453235; x=1703058035; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=v0Ly6HERW61XKD/YdVWYbpue1eQaDfbZ8RVVo6+xYP4=; b=rewUZHK1wEeEGVcJ88SnNSBnOORrJbG5Ql2dp8AoP5sooWR8m9OaliXH+ncG3dRIYh fqdQtkKXBeaK+BGPtsQzrDmleR8ur1P386CKQ82itfWX4Q4LDtGh37GgGFGZpqPDc/B/ AGHrcqRBZ2BmJrJ5Mi3khy58axT/7SapNGWq1cj1xYNTd+sheDlKh2ciLrad6p2hClWy orodXagxrWuylmcV8NmrwZu7ndwt1KYXG9haDmOAqnf+EOmtlBVQv98FPDRrVAoC9wSr a49W4jm+Yp53/Rs8oZWFQtORgz0qvYl7bMXTmx75Fzn6WJ2GoYsUz2MmgL5lyc1CLv3Z muog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702453235; x=1703058035; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=v0Ly6HERW61XKD/YdVWYbpue1eQaDfbZ8RVVo6+xYP4=; b=j3QVxzKsch2RgvpnXqtbCf7pdAV3gH8qXB2SdWkXWzTd0OOLBEHUPoTjrtH3HVFtKP fObBWQjblKQL27h2FYRGzT9Hl4Qog4Nq4vjlt9YTAzSVo5HqTuNeAhbpp5woLLL/UBCi Cb7oZHqbV9GE7yL5klFvuVlnQhYDdw90bNr6jYbxWizrwvV8rWOE1EJCP1PhoNwyXA0n MU2T4g4sPUcZNglgvpKx/qN41bDJA54Zd1jYbBMYpr5MdsXE7jU5BNvoaDqmG3RWnQq6 Uu+ObF46DW9tWTbdoIDUA5g6BWqVZTlSk2aVsqouavZ0Jy4ZEx+YWboVmr5V6xUb5HOC GGSw== X-Gm-Message-State: AOJu0YwOM9MOBwpR5rCKGvXGUQJi/DJpgUjQQ155pHmRH/ye9I3SugLu x0sKK1R+MsYH52Mne+U9Jf8zfg== X-Received: by 2002:aa7:da41:0:b0:551:dce6:6911 with SMTP id w1-20020aa7da41000000b00551dce66911mr1432774eds.10.1702453234941; Tue, 12 Dec 2023 23:40:34 -0800 (PST) Received: from localhost (h1f2c.n1.ips.mtn.co.ug. [41.210.159.44]) by smtp.gmail.com with ESMTPSA id p3-20020a50cd83000000b005522983c243sm156639edi.91.2023.12.12.23.40.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 23:40:34 -0800 (PST) Date: Wed, 13 Dec 2023 10:40:27 +0300 From: Dan Carpenter To: Philipp Hortmann Cc: Gary Rookard , gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/5] staging: rtl8192e: rename variable pHT Message-ID: <437ac97e-ff02-455d-a5b0-677907e86cad@suswa.mountain> References: <20231212165637.17618-1-garyrookard@fastmail.org> <20231212165637.17618-5-garyrookard@fastmail.org> <6a065daf-3639-4a87-8ab6-7018e0362900@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6a065daf-3639-4a87-8ab6-7018e0362900@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 12 Dec 2023 23:41:16 -0800 (PST) On Tue, Dec 12, 2023 at 07:56:57PM +0100, Philipp Hortmann wrote: > On 12/12/23 17:56, Gary Rookard wrote: > > oding style issue, Avoid CamelCase > > rename it. pHT -> ht > > > > Signed-off-by: Gary Rookard > > --- > > drivers/staging/rtl8192e/rtl819x_HTProc.c | 20 ++++++++++---------- > > 1 file changed, 10 insertions(+), 10 deletions(-) > > > > diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c > > index ac85151a6069..add8f58b5b1e 100644 > > --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c > > +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c > > @@ -250,17 +250,17 @@ void ht_reset_iot_setting(struct rt_hi_throughput *ht_info) > > void ht_construct_capability_element(struct rtllib_device *ieee, u8 *pos_ht_cap, > > u8 *len, u8 is_encrypt, bool assoc) > > { > > - struct rt_hi_throughput *pHT = ieee->ht_info; > > + struct rt_hi_throughput *ht = ieee->ht_info; > > struct ht_capab_ele *pCapELE = NULL; > > - if (!pos_ht_cap || !pHT) { > > + if (!pos_ht_cap || !ht) { > > netdev_warn(ieee->dev, > > "%s(): posHTCap and ht_info are null\n", __func__); > > return; > > } > > memset(pos_ht_cap, 0, *len); > > - if ((assoc) && (pHT->ePeerHTSpecVer == HT_SPEC_VER_EWC)) { > > + if ((assoc) && (ht->ePeerHTSpecVer == HT_SPEC_VER_EWC)) { > > static const u8 EWC11NHTCap[] = { 0x00, 0x90, 0x4c, 0x33 }; > > memcpy(pos_ht_cap, EWC11NHTCap, sizeof(EWC11NHTCap)); > > @@ -275,9 +275,9 @@ void ht_construct_capability_element(struct rtllib_device *ieee, u8 *pos_ht_cap, > > if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev)) > > pCapELE->ChlWidth = 0; > > else > > - pCapELE->ChlWidth = (pHT->reg_bw_40mhz ? 1 : 0); > > + pCapELE->ChlWidth = (ht->reg_bw_40mhz ? 1 : 0); > > The last line changed with my patch: > [PATCH 02/10] staging: rtl8192e: Remove variable ht_info->reg_bw_40mhz > > It is always difficult to know which patches are accepted by the maintainer > but you may want to look into the following mailing list to see if there > have been any patches send in for this driver. > https://lore.kernel.org/linux-staging/ > > You could apply the send in patches and build your ones on top. Then you do > not have this issue. But when the patches you are using are not accepted you > will run into the same issues. Generally, it's first come, first serve. For you, your patches have a 95% chance of being merged. regards, dan carpenter