From patchwork Mon Jan 23 20:53:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 47387 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1811188wrn; Mon, 23 Jan 2023 12:56:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXvofI0yvOBJ8LwwUvijacPNQGhHR+EtuGyCa7uEdiFRZ/FUWmj9GB7Bl1GPx41r4A9f24+2 X-Received: by 2002:aa7:cd86:0:b0:499:27e8:94a3 with SMTP id x6-20020aa7cd86000000b0049927e894a3mr28337258edv.13.1674507400925; Mon, 23 Jan 2023 12:56:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674507400; cv=none; d=google.com; s=arc-20160816; b=jxr3tszHqUgOmq0QLfTZVyIwfF1RkjOyfOhC7mww9DLH351hQ7J5T95gB0Ntr3Dj3b eXh2DnHZVqOlk8EbLM6c0RjVx7CVEpevkq3bBZvdUwDVv2YvjNavy78cRHjKzLBRiSxx H8iievqzANej0aT5cw+Oz2fpOTI+UCCVfetVkIPSSEK/Js0BD4Li/DHryaN4B9EcOzEE ebOj7WOuca/gkU9CUKjVhq+f1SB9cnVsWAQwTnGTYnUHpUqH19HhUFL9Y+J+dFMmYQ4/ N34acm6nECINw9X1A7GgvBW7Fbh9z8BqGJCEmjrCCKyMAL8aM13Zgu8FyOJhcQpD9T6e g4bQ== 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=barfV6395l14b+aI0E1dnzTsmWtfbujs9UqoJjTYgVUR0UsE0dHj8TteMdBqibxMTQ W+7yBFgFbYfNEnEYM9oQ7puvKN2UAgF+4nyQs9iTeaOlsY2tFrKIAiOAB2/0ANvbYpkJ KDBR/dkj+aw34UfrU/PXMspRdVwdPDfgahwSyuMgneyfwC5MBFqDXDljUv10rgoylyPm HNuv0O86v4aK/5aeI5efovPld7hsqROgccl7YklGyym/EJf0o6o8oQVdbQVOZZwwCPtd +PowY0RhN+vb51UFa/o4o78i2JS97djX1mfUnlblCMm0hkvMTCB3Gfl/hIe4w7z/JrJT 20Bg== 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 g35-20020a056402322300b004841817039asi425836eda.614.2023.01.23.12.56.16; Mon, 23 Jan 2023 12:56:40 -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 S232026AbjAWUyO (ORCPT + 99 others); Mon, 23 Jan 2023 15:54:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231733AbjAWUyE (ORCPT ); Mon, 23 Jan 2023 15:54:04 -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 97F627DB5 for ; Mon, 23 Jan 2023 12:54:03 -0800 (PST) Received: from ipservice-092-217-089-134.092.217.pools.vodafone-ip.de ([92.217.89.134] 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 1pK3pG-0000Lk-Fx; Mon, 23 Jan 2023 21:53:58 +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 04/23] staging: r8188eu: remove struct intf_priv Date: Mon, 23 Jan 2023 21:53:23 +0100 Message-Id: <20230123205342.229589-5-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230123205342.229589-1-martin@kaiser.cx> References: <20230123205342.229589-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?1755848272307054447?= X-GMAIL-MSGID: =?utf-8?q?1755848272307054447?= 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);