From patchwork Fri Dec 30 18:06:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 37730 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3008334wrt; Fri, 30 Dec 2022 10:08:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXutsg12r1tw1zO+QOs55wIncExSbaiFAmR/p4TTKmFmgEjBWr32i9yc4vBeEVmnJGfcNgVe X-Received: by 2002:a17:90a:460a:b0:223:ed96:e3ca with SMTP id w10-20020a17090a460a00b00223ed96e3camr35490956pjg.28.1672423686275; Fri, 30 Dec 2022 10:08:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672423686; cv=none; d=google.com; s=arc-20160816; b=RpkL8a2dPKIfyboNiMEER/CoLh4FyD/zA3RooPIS7Vhjk32bU2SI/zO2LkXQG/Gec3 yzxbvTkG0vDIn0KOU0+zYroEaoHK9ytpw59OLGHf+Fkple4id5eA647nCT6o/7zgc+By z5wGtEAW3vNqNhaCI15aBLtfJUBz1jIQjsFzAValkDYLweQ5Bci1TkmSIXOZQZUiDM5K ZRmKbU/lO6LnoqcxEyg0wgLpnpir6H/PMbyziScSnmxAVEhPGLVszxy+XsBdaMikt3xb MyR8eGrepTFuwbLyrFo3BIbHsa8UvlkCkl0oxc/JDeJ2eNZFGnq/GlCiZDTP00Dr7wE5 Nisw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=9jHKqYo8DMs8x6kzB9kTXWlk30gU1sluXmaaWNHvsNQ=; b=if+3o+h0an3/NVt3saXHJHb6BcBikticXKKVewjk0HckHNP4/ZrC0paeSwcPGpCzih hfxNUlQTzfARS25hq9YlO74R6EWa+zHo4Q0Je+YQZfe1Ya8ytUdL/qfk5BeIXham+QDg 62ZkQg56mZOVKrTi51g6axi+tIJFubZfoRZdZLWBq0OrqNHaU15uTVtIiGjE4fZ8WaHK 3fuCW/cAIfSqmzrrY2KBtoyF4iJDL9FKgbMNx9xrJqjqHrP7YumE3zD1u/04jfU+wicN qVuaTepH/L0QWo70EKIhEQ4yxoqq17ujiqk1yRIr1UkHDj/zOj6y9QFNfaQchuWC3dbb kaZA== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 26-20020a63185a000000b00477cd382329si22714524pgy.56.2022.12.30.10.07.54; Fri, 30 Dec 2022 10:08:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235450AbiL3SHV (ORCPT + 99 others); Fri, 30 Dec 2022 13:07:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235412AbiL3SHO (ORCPT ); Fri, 30 Dec 2022 13:07:14 -0500 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6361B60E2 for ; Fri, 30 Dec 2022 10:07:13 -0800 (PST) Received: from dslb-188-097-208-179.188.097.pools.vodafone-ip.de ([188.97.208.179] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1pBJmd-0004rR-It; Fri, 30 Dec 2022 19:07:07 +0100 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 02/20] staging: r8188eu: remove some unused CAM defines Date: Fri, 30 Dec 2022 19:06:28 +0100 Message-Id: <20221230180646.91008-3-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221230180646.91008-1-martin@kaiser.cx> References: <20221230180646.91008-1-martin@kaiser.cx> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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?1753663339517635007?= X-GMAIL-MSGID: =?utf-8?q?1753663339517635007?= Remove some CAM-related defines which are not used in the r8188eu driver. Signed-off-by: Martin Kaiser --- .../staging/r8188eu/include/rtl8188e_spec.h | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/drivers/staging/r8188eu/include/rtl8188e_spec.h b/drivers/staging/r8188eu/include/rtl8188e_spec.h index 3fa3b3e5dd64..25b31417cd58 100644 --- a/drivers/staging/r8188eu/include/rtl8188e_spec.h +++ b/drivers/staging/r8188eu/include/rtl8188e_spec.h @@ -510,28 +510,7 @@ Default: 00b. /* 8192C BW_OPMODE bits (Offset 0x203, 8bit) */ #define BW_OPMODE_20MHZ BIT(2) -/* 8192C CAM Config Setting (offset 0x250, 1 byte) */ -#define CAM_VALID BIT(15) -#define CAM_NOTVALID 0x0000 -#define CAM_USEDK BIT(5) - -#define CAM_CONTENT_COUNT 8 - -#define CAM_NONE 0x0 -#define CAM_WEP40 0x01 -#define CAM_TKIP 0x02 -#define CAM_AES 0x04 -#define CAM_WEP104 0x05 -#define CAM_SMS4 0x6 - -#define TOTAL_CAM_ENTRY 32 -#define HALF_CAM_ENTRY 16 - -#define CAM_CONFIG_USEDK true -#define CAM_CONFIG_NO_USEDK false - #define CAM_WRITE BIT(16) -#define CAM_READ 0x00000000 #define CAM_POLLINIG BIT(31) #define SCR_UseDK 0x01