Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9931806rwl; Wed, 11 Jan 2023 12:00:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXsml31g2M4/OTNjYyr75Tz+vW2/iK7FxC5eN7AomOd6bhmglxizfVbslqThM/uCemSihRhA X-Received: by 2002:a17:907:c516:b0:7c1:e78:11ed with SMTP id tq22-20020a170907c51600b007c10e7811edmr67009138ejc.0.1673467255574; Wed, 11 Jan 2023 12:00:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673467255; cv=none; d=google.com; s=arc-20160816; b=T1/O7SRonh2lUWTTArdmQdCoykXKgCweoU18I+UKiHRoyTq8lApZdJ+u4kIDYmOLLs ppwGaamznOLT8tblifKw5B4FiGdfQC3t9lxelfpOBaKskWU4Dsr2V2m1tzwkVsZkn8X6 Awu/vRFHEN7O4gmDwwWKOgfF7qzI8HCcstPqEwRkyDl35PsIAPcle2RQm5zqi9x5LLRb oz7eV9BgeWLb3SmwLkxoAy7tozM87jOea7QCe47Dq/MOXNH9kBh574ldaFkB092vFvTa uBib4G8dO1mO+wad7bLEITVwrOqsWBenZ2+8Gqh886Q/kFs013a/ZD7eIwtDOg0vJZK1 Yx3g== 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=1tzV8yWh7x9cYqXB9sUzST/ytWWx4N/SlJV+7QERGnI=; b=abPwqIHVvIRyCMNUm9NLqS+SnpILoCTIKWg1L7bCzuUT3jLEDUNHdVl1F0Cd/5GgXI k2IdV8vN2SuGmNRbQzGjc5gLJk6h6gZoYJJgcqjtdSA5oiQ2NA6K8ABRUwLfylv9Bjnt 3+5OULhAU5Sr6fFe/KaD9CIgfNFNXEQrOgyro6Dgl5HKlgB+OoEvmfytKp9voBgfTwS8 IBHXJkfmsDL5WqJRpXm32S1Cz877tmWLZ4BzZR1J278Pd9srFXRFCq/y0BK5mzt1XSVh 9N8Zk59CvrBikVfyd820eYY09wg17IOrxfo7rFPdBMw0ANEL5QxpR1DUvuaOl/EnJgWJ vbRg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s6-20020a056402520600b00493952a2f8esi4954228edd.269.2023.01.11.12.00.40; Wed, 11 Jan 2023 12:00:55 -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 S239619AbjAKT6R (ORCPT + 51 others); Wed, 11 Jan 2023 14:58:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235180AbjAKT5K (ORCPT ); Wed, 11 Jan 2023 14:57:10 -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 C22AB6174 for ; Wed, 11 Jan 2023 11:57:08 -0800 (PST) Received: from dslb-188-096-145-172.188.096.pools.vodafone-ip.de ([188.96.145.172] 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 1pFhDc-0005F2-5s; Wed, 11 Jan 2023 20:57:04 +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 14/20] staging: r8188eu: remove IO defines Date: Wed, 11 Jan 2023 20:56:34 +0100 Message-Id: <20230111195640.306748-15-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230111195640.306748-1-martin@kaiser.cx> References: <20230111195640.306748-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Remove a couple of IO related defines which are not used in the r8188eu driver. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/include/rtw_io.h | 58 ------------------------ 1 file changed, 58 deletions(-) diff --git a/drivers/staging/r8188eu/include/rtw_io.h b/drivers/staging/r8188eu/include/rtw_io.h index 95dd66c0be82..749bb1d0eeed 100644 --- a/drivers/staging/r8188eu/include/rtw_io.h +++ b/drivers/staging/r8188eu/include/rtw_io.h @@ -22,64 +22,6 @@ #define rtw_usb_buffer_free(dev, size, addr, dma) \ usb_free_coherent((dev), (size), (addr), (dma)) -#define NUM_IOREQ 8 - -#define MAX_PROT_SZ (64-16) - -#define _IOREADY 0 -#define _IO_WAIT_COMPLETE 1 -#define _IO_WAIT_RSP 2 - -/* IO COMMAND TYPE */ -#define _IOSZ_MASK_ (0x7F) -#define _IO_WRITE_ BIT(7) -#define _IO_FIXED_ BIT(8) -#define _IO_BURST_ BIT(9) -#define _IO_BYTE_ BIT(10) -#define _IO_HW_ BIT(11) -#define _IO_WORD_ BIT(12) -#define _IO_SYNC_ BIT(13) -#define _IO_CMDMASK_ (0x1F80) - -/* - For prompt mode accessing, caller shall free io_req - Otherwise, io_handler will free io_req -*/ - -/* IO STATUS TYPE */ -#define _IO_ERR_ BIT(2) -#define _IO_SUCCESS_ BIT(1) -#define _IO_DONE_ BIT(0) - -#define IO_RD32 (_IO_SYNC_ | _IO_WORD_) -#define IO_RD16 (_IO_SYNC_ | _IO_HW_) -#define IO_RD8 (_IO_SYNC_ | _IO_BYTE_) - -#define IO_RD32_ASYNC (_IO_WORD_) -#define IO_RD16_ASYNC (_IO_HW_) -#define IO_RD8_ASYNC (_IO_BYTE_) - -#define IO_WR32 (_IO_WRITE_ | _IO_SYNC_ | _IO_WORD_) -#define IO_WR16 (_IO_WRITE_ | _IO_SYNC_ | _IO_HW_) -#define IO_WR8 (_IO_WRITE_ | _IO_SYNC_ | _IO_BYTE_) - -#define IO_WR32_ASYNC (_IO_WRITE_ | _IO_WORD_) -#define IO_WR16_ASYNC (_IO_WRITE_ | _IO_HW_) -#define IO_WR8_ASYNC (_IO_WRITE_ | _IO_BYTE_) - -/* - Only Sync. burst accessing is provided. -*/ - -#define IO_WR_BURST(x) \ - (_IO_WRITE_ | _IO_SYNC_ | _IO_BURST_ | ((x) & _IOSZ_MASK_)) -#define IO_RD_BURST(x) \ - (_IO_SYNC_ | _IO_BURST_ | ((x) & _IOSZ_MASK_)) - -/* below is for the intf_option bit defition... */ - -#define _INTF_ASYNC_ BIT(0) /* support async io */ - struct intf_priv; struct intf_hdl; -- 2.30.2