Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9961999rwl; Wed, 11 Jan 2023 12:26:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXtBPAKjMflTU9uZdTlb15r690n/lIbHyb1g6lV5yKmtpitYvRVZ5TAjZ/iHwFmyMPBEioL3 X-Received: by 2002:a17:902:b713:b0:190:c550:d295 with SMTP id d19-20020a170902b71300b00190c550d295mr70928973pls.9.1673468777179; Wed, 11 Jan 2023 12:26:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673468777; cv=none; d=google.com; s=arc-20160816; b=Uf/Y9k8qHQ9WOEHPzOw4vbWqVcjoqvae35wo951EkWilf+W4JvwzjMs0NwvVmYeY96 lczTmmDSRpxB2fnXI3GQnPcouGMMFAgJc5B7wx7nCTcc1RRLBV765txFFJLgXCnS+0p6 8XF5XtfPevEkoLLEjGiElv/D4O9O8mU19WhuUXOVrTux7TpeIBkdxqdTuzyKQ9stBOXT sLTzcSyeAIvGRl2Huo/W5psC+ZySzyeTuJd7cdbUato3aowHOTnY6SDSge6S/lXbI53z ktzbJL08cUgQbMoRYVGZDyEc+UB+JYTmkvXxQC6GeHgM8kWmbkGrQHLasvBxd88r+MxI B2Dw== 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=lqf2fCmLCodnxnmgFD8J1Pna+IX1Iayf7FnvCsRtai4=; b=Fb4UZE3hnqnwSJ8fxgZJzwSQpZ1Cr6knIrtUCoYh/HXouDlFmOENX3b/Jv2qJUXGfU PnE1CxAB2HP+Ne9AVFvm/BRALu06IyWD5y7Nbigzsp93BhpwLexryP1aD4/SkvKo6AeX Wm0Ra8mAQRZ8zJvnV6GMK3MY1sSJF1gs3Q5BDlsHASBff9r5LY3aUCPtjsnh0toDzqNU xUaqFOuUbGt1EOadr1X77QeJ4bH4fzYHsl5IfzDUri0JdT256yCsdVCbJTWL7ufUoMd2 AeanFqef0dMMOZr0dJS6f9Azv9cP4TzsQPC3AhRvH5NoE1Yrz9+legumpqkodevxW0VC e3YQ== 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 n12-20020a170902d2cc00b0018962933a3dsi2904367plc.206.2023.01.11.12.26.10; Wed, 11 Jan 2023 12:26:17 -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 S235844AbjAKUEV (ORCPT + 51 others); Wed, 11 Jan 2023 15:04:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239800AbjAKUDx (ORCPT ); Wed, 11 Jan 2023 15:03:53 -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 BDA9041039 for ; Wed, 11 Jan 2023 11:59:39 -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 1pFhDh-0005F2-0I; Wed, 11 Jan 2023 20:57:09 +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 20/20] staging: r8188eu: remove struct intf_priv Date: Wed, 11 Jan 2023 20:56:40 +0100 Message-Id: <20230111195640.306748-21-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 struct intf_priv is not used in the r8188eu driver. It can be removed. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/include/osdep_intf.h | 32 -------------------- drivers/staging/r8188eu/include/rtw_io.h | 2 -- 2 files changed, 34 deletions(-) diff --git a/drivers/staging/r8188eu/include/osdep_intf.h b/drivers/staging/r8188eu/include/osdep_intf.h index 6d66cb57225e..457fb3852a19 100644 --- a/drivers/staging/r8188eu/include/osdep_intf.h +++ b/drivers/staging/r8188eu/include/osdep_intf.h @@ -7,38 +7,6 @@ #include "osdep_service.h" #include "drv_types.h" -struct intf_priv { - u8 *intf_dev; - u32 max_iosz; /* USB2.0: 128, USB1.1: 64, SDIO:64 */ - u32 max_xmitsz; /* USB2.0: unlimited, SDIO:512 */ - u32 max_recvsz; /* USB2.0: unlimited, SDIO:512 */ - - u8 *io_rwmem; - u8 *allocated_io_rwmem; - u32 io_wsz; /* unit: 4bytes */ - u32 io_rsz;/* unit: 4bytes */ - u8 intf_status; - - void (*_bus_io)(u8 *priv); - -/* -Under Sync. IRP (SDIO/USB) -A protection mechanism is necessary for the io_rwmem(read/write protocol) - -Under Async. IRP (SDIO/USB) -The protection mechanism is through the pending queue. -*/ - struct mutex ioctl_mutex; - /* when in USB, IO is through interrupt in/out endpoints */ - struct usb_device *udev; - struct urb *piorw_urb; - u8 io_irp_cnt; - u8 bio_irp_pending; - struct timer_list io_timer; - u8 bio_irp_timeout; - u8 bio_timer_cancel; -}; - int netdev_open(struct net_device *pnetdev); int netdev_close(struct net_device *pnetdev); diff --git a/drivers/staging/r8188eu/include/rtw_io.h b/drivers/staging/r8188eu/include/rtw_io.h index 033ea7146861..090555f562f2 100644 --- a/drivers/staging/r8188eu/include/rtw_io.h +++ b/drivers/staging/r8188eu/include/rtw_io.h @@ -16,8 +16,6 @@ #include #include -struct intf_priv; - int __must_check rtw_read8(struct adapter *adapter, u32 addr, u8 *data); int __must_check rtw_read16(struct adapter *adapter, u32 addr, u16 *data); int __must_check rtw_read32(struct adapter *adapter, u32 addr, u32 *data); -- 2.30.2