Message ID | cover.1678569965.git.philipp.g.hortmann@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp473202wrd; Sat, 11 Mar 2023 14:15:51 -0800 (PST) X-Google-Smtp-Source: AK7set+Vw6YUBvjE5vJFkNGJ9TMJoSNf4HavsThyOu/03X4nTQxr4QjMQ7CbI4h+nPgzlPJW7noq X-Received: by 2002:a05:6a21:999d:b0:cb:a2eb:841f with SMTP id ve29-20020a056a21999d00b000cba2eb841fmr41391048pzb.53.1678572950717; Sat, 11 Mar 2023 14:15:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678572950; cv=none; d=google.com; s=arc-20160816; b=gDWi7eZ+CJR9IzOvTXpyBrVbdhHbNCejgwwXhOnL/5/Ra4iIObit05QZurMwK4Zl5M HZDDbV+YJy0i7JRKN37zWW1gK+ua/UMn28ETjs6+9XM6gionmtppsjm6w1SqDi2zbkri TuuGbneR6iXBtTHllYwYAX8wo3tq5xCllKWVURmxDdLfINShqs+BZmeMKaDIo7gBDoDL m5o6fk81GBpGQ1xleeTDfo5EV6Un4xA8yoG2wQyiCj0eJ72/vcE1zWIlLOCpZbBYcGA1 fHJGse03n+dsSq4r3C3vXCJvF8wRHtx2o5gk7WTHGGNA9gIAsGMbUaruw1KUzjyT/VJe Sitg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=9dlfB5JbVu/U11Cp+nQwAL8qvcirLFzR8pf4WiBE+k8=; b=EiXTsUKbbrcUgMIvSyTHMwtzjo6przt62e8VLGKi/CUcIQxNwx2UoBml9LCgDvBW3x UzjNoRWVzd789Li1dV7M8XxUZsMCC6XrMvih0KvwnfFDY91QMxLZi2/DTaco881UQ4FC W15iaMZMM/wD5h4YVs1DJJ1TZjDoLPdlVHK7xC1Lu2BiPOrggXK/nyWYABbA0eEFAHkb hhpZO6fOq+agQTJ5G3Vp8lSf9ZzzRB2QjB/6a4k3DZZz98+09E1QZvg64NUCWcNKKIZT 12OMnPia5Cm+0Pc8Na3YyzrGNDJXhQCIoiuSL+Yb+r7vNEQy1NUYvyU2bQvMQ7Qm4ZMy ynUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ScEFLFjk; 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 j125-20020a625583000000b00602eaac6646si2713629pfb.26.2023.03.11.14.15.35; Sat, 11 Mar 2023 14:15:50 -0800 (PST) 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=20210112 header.b=ScEFLFjk; 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 S229867AbjCKVuX (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Sat, 11 Mar 2023 16:50:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjCKVuU (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 11 Mar 2023 16:50:20 -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 9C3164FABD for <linux-kernel@vger.kernel.org>; Sat, 11 Mar 2023 13:50:08 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id cy23so34338262edb.12 for <linux-kernel@vger.kernel.org>; Sat, 11 Mar 2023 13:50:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678571407; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=9dlfB5JbVu/U11Cp+nQwAL8qvcirLFzR8pf4WiBE+k8=; b=ScEFLFjkZ1gjXw9Gna6siYpeeSjllKpiE7BmMib3pkK+9DpPlyUQC1O+pBzCJa9bJP aP2+sr3hcOahGYs1FHbkBl6nNtywTQ9sVbhedpA2sxalKydU77zf+uwYgjzVrywW8hwR dMzjKmh49bTRfceAIhvxz5D5nbzk/wvmmnJY4H+LWAbQ9YCdUYdRw43mAnep9CX2K4vn +67s1G9A0YFgPQovftdvUv2eFLcBYB1yZrLwWoUmeY/AkdIp8a6j/470LDXhz6KBmbrv lFUMraDTmGkJ8yPLGA26P1Xk5KSwmPc/YdXd48wKPg7ovIXodcozYWro/XJsI926+uOs BnLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678571407; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9dlfB5JbVu/U11Cp+nQwAL8qvcirLFzR8pf4WiBE+k8=; b=hrFFKQSLXOyRf9u5lqdq7+yUvvLGHkw6yYs8ub+VVFsGeODI8/p35rjvZgr5R8B5zV HylNKhK0tRrFazogpCllB4nOngGYiw5QB3tX0w7FWr17BblCuKfPI34MiQ2x8iWyxy7l Bx8SSUcV5pKSBL3vToYKRPa2DuZO7+jdNyPXPwV7xUeXgxsRrsU6ZotW+FRrKUXX+KF1 yuSsElkiD0Eiq4BwhDw4NA6AhfJukZlYAHC8KHD1Sf4QJoEau3dY5U0z7elZTpe36K8q CRAnuLzAHX77jBCH9u++dIyZaEZ6oAsZxxBll9xob2oPUKcaPCx3M7hMSI7Bbe/mE7W7 fbcA== X-Gm-Message-State: AO0yUKXoD1fq7UxPccv1haDLaa85qq2sobm49ueaQ5pThefC8zvDqTIe nQ1TFg+vU8qw5aRDfec19s6FjSwftm4= X-Received: by 2002:a17:906:d4:b0:878:5fa4:7443 with SMTP id 20-20020a17090600d400b008785fa47443mr5802283eji.3.1678571406766; Sat, 11 Mar 2023 13:50:06 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p57935146.dip0.t-ipconnect.de. [87.147.81.70]) by smtp.gmail.com with ESMTPSA id jw11-20020a17090776ab00b008d53ea69227sm1497680ejc.224.2023.03.11.13.50.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 13:50:06 -0800 (PST) Date: Sat, 11 Mar 2023 22:50:04 +0100 From: Philipp Hortmann <philipp.g.hortmann@gmail.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 00/12] staging: rtl8192e: Remove unused RF90_PATH_C and ..D starting .._phyreg.h Message-ID: <cover.1678569965.git.philipp.g.hortmann@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760111310443986253?= X-GMAIL-MSGID: =?utf-8?q?1760111310443986253?= |
Series |
staging: rtl8192e: Remove unused RF90_PATH_C and ..D starting .._phyreg.h
|
|
Message
Philipp Hortmann
March 11, 2023, 9:50 p.m. UTC
Remove unused RF90_PATH_C and RF90_PATH_D. Justification can be quite complex. Some variables are unused then those are completely removed. The following code lines are mandatory: enum rf90_radio_path { RF90_PATH_A = 0, RF90_PATH_B = 1, RF90_PATH_C = 2, RF90_PATH_D = 3, RF90_PATH_MAX }; Index is saved in variable name: eRFPath Code likes to shorten variable name to the array with this line: pPhyReg = &priv->phy_reg_def[eRFPath]; Tested with rtl8192e Transferred this patch over wlan connection of rtl8192e Philipp Hortmann (12): staging: rtl8192e: Remove unused RF90_PATH_C and ..D in rtl92e_config_rf staging: rtl8192e: Remove unused RF90_PATH_C and ..D for rfintfs staging: rtl8192e: Remove unused variable rfintfi staging: rtl8192e: Remove unused RF90_PATH_C and ..D for rfintfo and ..fe staging: rtl8192e: Remove unused RF90_PATH_C and ..D for rf3wireOffset staging: rtl8192e: Remove unused variable rfLSSI_Select and rfTxGainStage staging: rtl8192e: Remove unused variable rfHSSIPara1 and rfSwitchControl staging: rtl8192e: Remove unused variable rfAGCControl1 and rfAGCControl2 staging: rtl8192e: Remove unused variable rfRxIQImbalance and rfRxAFE staging: rtl8192e: Remove unused variable rfTxIQImbalance and rfTxAFE staging: rtl8192e: Remove unused RF90_PATH_C and ..D for rfLSSIReadBack staging: rtl8192e: Remove unused RF90_PATH_C and ..D for rfHSSIPara2 .../staging/rtl8192e/rtl8192e/r8190P_def.h | 11 --- .../rtl8192e/rtl8192e/r8190P_rtl8256.c | 4 -- .../staging/rtl8192e/rtl8192e/r8192E_phy.c | 68 ------------------- .../staging/rtl8192e/rtl8192e/r8192E_phyreg.h | 37 ---------- 4 files changed, 120 deletions(-)
Comments
Looks good!
Reviewed-by: Dan Carpenter <error27@gmail.com>
regards,
dan carpenter