From patchwork Wed Jan 11 19:56:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 42180 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3512564wrt; Wed, 11 Jan 2023 12:04:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXtzvWY0Dpt6VsT5kwQu4NGchTPY4WhmSfB8nD03tWayIz2ySXhgsufB92wXUloVwGTK4D9o X-Received: by 2002:a17:90b:4cc3:b0:228:d392:fb3a with SMTP id nd3-20020a17090b4cc300b00228d392fb3amr6548832pjb.25.1673467492700; Wed, 11 Jan 2023 12:04:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673467492; cv=none; d=google.com; s=arc-20160816; b=WX+veBpuT6MPtiO+g3zxh/mQ7JY887nQsW8PMwQqT29FtBKpIrTha31rheHLPCTwVr gQSbn4RzChnJ6UlnqApd2vr9GOA5EoXpbr06zy6tFaIKyQIyupeQuC1FJI86CCXUDwfP Pch7AT5peMVij+xuSUndqV0fKbnNEU9l5+cQfbb6rHqFfmfVSeZuDi4+CugsYZg63SPz FLfXpRnyOu/r4aPyuFU3fBV/LLhKT/dmo3ZEBH6h33QwibLtmdAB6VWc8bFJBpjhEfHg 9i3G3ubOz0deeTVfNA+O3fthw7yRuDL7bByF/MvUgd3CD+G7+5IWJN8h0w6By+Rgka0h 6axQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 71-20020a63034a000000b004ac9348e706si16092708pgd.113.2023.01.11.12.04.39; Wed, 11 Jan 2023 12:04:52 -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 + 99 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 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?1754757849483417155?= X-GMAIL-MSGID: =?utf-8?q?1754757849483417155?= 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);