From patchwork Sat Mar 25 13:28:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Straube X-Patchwork-Id: 7199 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp409455vqo; Sat, 25 Mar 2023 06:29:35 -0700 (PDT) X-Google-Smtp-Source: AK7set+L3nOrzFh6WdqWMzEJlZL7HkYXDs6w9zMDjrmYJqqMzRyKteDAmQIjBS+4Wiq4fPo08A87 X-Received: by 2002:a05:6402:1c0e:b0:4a3:43c1:8431 with SMTP id ck14-20020a0564021c0e00b004a343c18431mr13515316edb.5.1679750975304; Sat, 25 Mar 2023 06:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679750975; cv=none; d=google.com; s=arc-20160816; b=ojTGiLdLMrzrEixgLb69KYdI/HVip6J7kDJdQKwchb5t6QSyeQyplZ34/sYMmZ3YQr SOEw0UrkyJUp3n/tTc2AlLt8GjbK9RqydjiGn3kFYNA7jrtaG4T4YY2kPlr/KS5o48mq d8tUupf0lou7joJduuZMq+Vf9JYlY9TRNAxLaM7BITj1gI/re0LAsTa6d7VKkK59J9Lr 7Cc2rLNECqtM0BQAX6aVriUfVdk0LnKpygkBHQjmLuQsLrE2vuA8a1yYfAHsG8//rfh1 ProEaZ0aTeKKIBYo/iJUs6cyv/3l/2bRX9fwxF7uIDJp8jkdPm7e6r3n7UiU4CXFGzUM dVlA== 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=ShMF2P8iaE6k70YQQ7/9mT94Sb/9TGolk0qbMWkXhfQ=; b=Phvy4x+pQTb3lhUJ1blq+CaFcnmhLripk9GVCUTXtGm1j5V30E67v2WLkiuBQpIilR dJUOMEhqfbZWP2PoFSdY7eDzrJy1TxbXwgB18KjDZzeAd1bpilj4lpZNs5FAVSX28KVw Efz4uSVaYRHwHncA289J3IZeRJOTKa5Vs1tz+xYy/7TgSCIJksnOh0PdKysITJjiz+mi h//rDJGxz/5qae59saLbsC/3RinE0y8Z7LakL6w2GXas9i9CB+oOZ4BM7AL3tya6KQWm jbnAX8sLGXS7Hje5kXonwHTd5VZxJu+u90fJfey87oJZuL9+JdoVPhH13PaJWkTPEcuU myxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WonXO4DE; 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 u20-20020a056402065400b004fd236f945csi13640265edx.63.2023.03.25.06.29.12; Sat, 25 Mar 2023 06:29:35 -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=20210112 header.b=WonXO4DE; 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 S231719AbjCYN2i (ORCPT + 99 others); Sat, 25 Mar 2023 09:28:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229997AbjCYN2h (ORCPT ); Sat, 25 Mar 2023 09:28:37 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3476AF31 for ; Sat, 25 Mar 2023 06:28:35 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id x3so18182424edb.10 for ; Sat, 25 Mar 2023 06:28:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679750914; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ShMF2P8iaE6k70YQQ7/9mT94Sb/9TGolk0qbMWkXhfQ=; b=WonXO4DE67eifx43i6erh/LtEC9O4lRAVF3Xm2UOVFed3hPR4uSGZAKLcZddtxYN2G YGlTndk/dAsfAAzfJXH2yS5aG4Iq2CrureG+1FAZNP40R2Q1VzmTbL0HWn6b8QsQr4Bd ZXkJMaZHBXjAwlgmTjMhdkzU9b/uodjIH86PhK3OCVqBbVqyWuOqymRsDJUydgavx91t mC66/U3zEXzaJut41zW9Oo2vd9CBLBH/gsvSVB00z7pXTM//05kBqVFB8kYCG9OkEPhe iNDLnHf1VW+aN0VfNtqUmrdCyOF12usJF1sUySHAe0qrM3XQRSwx171L8c+6XdzJhDzR ogEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679750914; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ShMF2P8iaE6k70YQQ7/9mT94Sb/9TGolk0qbMWkXhfQ=; b=ewd0s+vZSG9jOAdVI5egFR8VcNtIT4QSpmQ+iyMSGLMvMawW3gQ6AogbVxckkMJ35v ApVnMmsaH5EcSHSkbj4IphSiXanGQ0dNyv3dB+d9oqY9mvHylHL2h/YqkfaDwZIKrsYb MI4IZmiafF1sc1C2HN3PgSls0Psv7Te5Ltg19iojwM9RLGZ0ssGhlOCcOGWn9EjSlxfw Dtk683QXXAov4WnrLs+Z+ZC0pt5IYm0TR9O3sNL8iTuxRNJ+0DUuwUIcP6RilQoHEB3N Ef1odjnNOeapfHZfkTTx24IbmHuAPU3altP1LzaaT+xNAmFBsbx8xC9btJ5/ubrx+FB2 /+FA== X-Gm-Message-State: AAQBX9fAE9m+0vpKSsVmpvqPcyj1emQpWpqf15wQpB0UF7tZLfbz9PBS 32zyOVAftFIrCCJDuiqL+eLMCoolObM= X-Received: by 2002:a17:907:3e1d:b0:931:1567:f84f with SMTP id hp29-20020a1709073e1d00b009311567f84fmr7846000ejc.4.1679750914406; Sat, 25 Mar 2023 06:28:34 -0700 (PDT) Received: from localhost.localdomain (ip5f5abbe9.dynamic.kabel-deutschland.de. [95.90.187.233]) by smtp.gmail.com with ESMTPSA id lt11-20020a170906fa8b00b008e54ac90de1sm11727610ejb.74.2023.03.25.06.28.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Mar 2023 06:28:34 -0700 (PDT) From: Michael Straube To: gregkh@linuxfoundation.org Cc: philipp.g.hortmann@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH 0/4] staging: rtl8192e: remove rf_type from r8192_priv Date: Sat, 25 Mar 2023 14:28:19 +0100 Message-Id: <20230325132823.22872-1-straube.linux@gmail.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1761346558596635296?= X-GMAIL-MSGID: =?utf-8?q?1761346558596635296?= This series removes the rf_type field from the r8192_priv structure. RF type is always RF_1T2R, so we do not need to store it in an extra variable. I don't have any hardware to test this, so compile-tested only. Michael Straube (4): staging: rtl8192e: remove RTL819X_DEFAULT_RF_TYPE staging: rtl8192e: remove redundant setting of rf_type staging: rtl8192e: priv->rf_type is always RF_1T2R staging: rtl8192e: remove rf_type from struct r8192_priv .../staging/rtl8192e/rtl8192e/r8192E_dev.c | 19 +++----------- .../staging/rtl8192e/rtl8192e/r8192E_phy.c | 7 ++---- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 3 --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 25 +++++++------------ 4 files changed, 15 insertions(+), 39 deletions(-) Tested-by: Philipp Hortmann