Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp729100pxb; Sat, 21 Aug 2021 16:59:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxPOARXsaglAxxoHO1sDeYn2EbvfaQvz2oF6ByB+EuNFmpSZtHggtJamRZn4sOOCBrkg1p X-Received: by 2002:a17:906:2441:: with SMTP id a1mr28607971ejb.550.1629590362258; Sat, 21 Aug 2021 16:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629590362; cv=none; d=google.com; s=arc-20160816; b=X7jU6jCKXZBBo1fI1YOEfoqcP4vIK5c0nIcAvQei39hY7bLjAZIBrBZQvxG2ZCaRb2 Fqc4Tzdy1AmbloZRE09a5AAR1GzAC1n1OXHaPKWNPp51vh9mm9J+V8Pa9WhWjLK5gUS5 EapgpMGv3OGaN/Y/ZnmnYdNbSYHwofq7RGts1D72VYpiWKzt36MxXP8fVQQSr5Y9urET okEP2NSlG1fWWwdl3t2PEsgLRZjn/GhT4jNsVD7eF0gAl0WfYnx4FdLcv+nGgvUpiRoc 9lMu+v1ikxGYG0D4xkHurg/6Yrjp+SEJEWzCc9sdMNLBI8WqSJ4v6zue1w78Z9IXFQ1l tKdg== 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:subject:reply-to:cc:from:to :dkim-signature:date; bh=u9TG8D1sXOpxCV7cWsT5xz5t+ZPbr7+gevnOxBRbilw=; b=yaQ3glQMYU5C1yLXR+aaH1sb9/mrPPNLICJpgVrtENx9yeViWDwUZDFR4Ak0LEGF8h ipWbqtF+ZwaI4pRsLvtphx4zzymGr3uG9UieXlhoeK8f/+nPHJuuDDXp0/wcj+6vQL1f NSEMeJq84si0wYr6ZlSjwk+EyAFrQ829V+wyjiK4+mTxiHDlHoEQYxibqs17XBJu4ky5 1VZnSnMRdd3TAGj5HgMom9/f34vXFkjwMDzeJA3nM5YWk7pGMsbyhA0tuRkdsSmZReuq ZdqaVyTBw+/3byLPOtvi6o3cTpQpV9iifFScUZWr6z21zqxhbNg9c8vsnF/X2alHtg+/ MVGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bryanbrattlof.com header.s=protonmail header.b=HbDOgJB1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bryanbrattlof.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oz31si11405910ejc.646.2021.08.21.16.58.30; Sat, 21 Aug 2021 16:59:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bryanbrattlof.com header.s=protonmail header.b=HbDOgJB1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bryanbrattlof.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231216AbhHUX4M (ORCPT + 99 others); Sat, 21 Aug 2021 19:56:12 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]:21669 "EHLO mail-4322.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbhHUX4L (ORCPT ); Sat, 21 Aug 2021 19:56:11 -0400 Date: Sat, 21 Aug 2021 23:55:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bryanbrattlof.com; s=protonmail; t=1629590129; bh=u9TG8D1sXOpxCV7cWsT5xz5t+ZPbr7+gevnOxBRbilw=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=HbDOgJB1cYDoitsmZhdNiHL/1FJbDXYohV/qgkt4KRD8a4VMT/2D5Xe7kNOp5FsuA Ik6iEugoC2AX8MaASgLkEFUiuLRRtcdNn2XQ0xquy2XoWStmOOEWBkfEQ3s3r2R6nR 1tLZ3BLCh/Bz6TAzkjZh5HFCsvu0ePhlTxO1cNNAUolGpbnHax5P84gTrRZbqcriPH Q7cQ7U7eN1KNuORQ9PH+gwxLOLvzBCN2jjPr5cTO1nXH7dAB5USWWolzHdyHrAGAYL bYQdVl578EgJG6Oc9qlWkoPWeypCmUniZUuT3WpDjrxxU5ASFfAbRxTSwpdUndXGBf t928E3BavWUKA== To: Greg Kroah-Hartman From: Bryan Brattlof Cc: Bryan Brattlof , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Reply-To: Bryan Brattlof Subject: [PATCH 5/6] staging: rtl8723bs: remove unused definitions from rtw_io.h Message-ID: <20210821235456.2502681-5-hello@bryanbrattlof.com> In-Reply-To: <20210821235456.2502681-1-hello@bryanbrattlof.com> References: <20210821235456.2502681-1-hello@bryanbrattlof.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are a few unused definitions inside rtw_io.h We can remove them. Signed-off-by: Bryan Brattlof --- drivers/staging/rtl8723bs/include/rtw_io.h | 91 ---------------------- 1 file changed, 91 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_io.h b/drivers/staging/r= tl8723bs/include/rtw_io.h index 43102f65bddd..fa0cedadaa79 100644 --- a/drivers/staging/rtl8723bs/include/rtw_io.h +++ b/drivers/staging/rtl8723bs/include/rtw_io.h @@ -72,9 +72,7 @@ #define _INTF_ASYNC_=09BIT(0)=09/* support async io */ -struct intf_priv; struct intf_hdl; -struct io_queue; struct _io_ops { =09=09u8 (*_read8)(struct intf_hdl *pintfhdl, u32 addr); @@ -85,33 +83,8 @@ struct _io_ops { =09=09int (*_write16)(struct intf_hdl *pintfhdl, u32 addr, u16 val); =09=09int (*_write32)(struct intf_hdl *pintfhdl, u32 addr, u32 val); -=09=09int (*_write8_async)(struct intf_hdl *pintfhdl, u32 addr, u8 val); -=09=09int (*_write16_async)(struct intf_hdl *pintfhdl, u32 addr, u16 val); -=09=09int (*_write32_async)(struct intf_hdl *pintfhdl, u32 addr, u32 val); - -=09=09void (*_sync_irp_protocol_rw)(struct io_queue *pio_q); - -=09=09u32 (*_read_interrupt)(struct intf_hdl *pintfhdl, u32 addr); - =09=09u32 (*_read_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *= pmem); =09=09u32 (*_write_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 = *pmem); - -=09=09u32 (*_write_scsi)(struct intf_hdl *pintfhdl, u32 cnt, u8 *pmem); - -=09=09void (*_read_port_cancel)(struct intf_hdl *pintfhdl); -=09=09void (*_write_port_cancel)(struct intf_hdl *pintfhdl); -}; - -struct io_req { -=09struct list_head=09list; -=09u32 addr; -=09volatile u32 val; -=09u32 command; -=09u32 status; -=09u8 *pbuf; - -=09void (*_async_io_callback)(struct adapter *padater, struct io_req *pio_= req, u8 *cnxt); -=09u8 *cnxt; }; struct=09intf_hdl { @@ -132,16 +105,6 @@ Below is the data structure used by _io_handler */ -struct io_queue { -=09spinlock_t=09lock; -=09struct list_head=09free_ioreqs; -=09struct list_head=09=09pending;=09=09/* The io_req list that will be ser= ved in the single protocol read/write. */ -=09struct list_head=09=09processing; -=09u8 *free_ioreqs_buf; /* 4-byte aligned */ -=09u8 *pallocated_free_ioreqs_buf; -=09struct=09intf_hdl=09intf; -}; - struct io_priv { =09struct adapter *padapter; @@ -150,20 +113,6 @@ struct io_priv { }; -extern uint ioreq_flush(struct adapter *adapter, struct io_queue *ioqueue)= ; -extern void sync_ioreq_enqueue(struct io_req *preq, struct io_queue *ioque= ue); -extern uint sync_ioreq_flush(struct adapter *adapter, struct io_queue *ioq= ueue); - - -extern uint free_ioreq(struct io_req *preq, struct io_queue *pio_queue); -extern struct io_req *alloc_ioreq(struct io_queue *pio_q); - -extern uint register_intf_hdl(u8 *dev, struct intf_hdl *pintfhdl); -extern void unregister_intf_hdl(struct intf_hdl *pintfhdl); - -extern void _rtw_attrib_read(struct adapter *adapter, u32 addr, u32 cnt, u= 8 *pmem); -extern void _rtw_attrib_write(struct adapter *adapter, u32 addr, u32 cnt, = u8 *pmem); - extern u8 rtw_read8(struct adapter *adapter, u32 addr); extern u16 rtw_read16(struct adapter *adapter, u32 addr); extern u32 rtw_read32(struct adapter *adapter, u32 addr); @@ -174,46 +123,6 @@ extern int rtw_write32(struct adapter *adapter, u32 ad= dr, u32 val); extern u32 rtw_write_port(struct adapter *adapter, u32 addr, u32 cnt, u8 *= pmem); -extern void rtw_write_scsi(struct adapter *adapter, u32 cnt, u8 *pmem); - -/* ioreq */ -extern void ioreq_read8(struct adapter *adapter, u32 addr, u8 *pval); -extern void ioreq_read16(struct adapter *adapter, u32 addr, u16 *pval); -extern void ioreq_read32(struct adapter *adapter, u32 addr, u32 *pval); -extern void ioreq_write8(struct adapter *adapter, u32 addr, u8 val); -extern void ioreq_write16(struct adapter *adapter, u32 addr, u16 val); -extern void ioreq_write32(struct adapter *adapter, u32 addr, u32 val); - - -extern uint async_read8(struct adapter *adapter, u32 addr, u8 *pbuff, -=09void (*_async_io_callback)(struct adapter *padater, struct io_req *pio_= req, u8 *cnxt), u8 *cnxt); -extern uint async_read16(struct adapter *adapter, u32 addr, u8 *pbuff, -=09void (*_async_io_callback)(struct adapter *padater, struct io_req *pio_= req, u8 *cnxt), u8 *cnxt); -extern uint async_read32(struct adapter *adapter, u32 addr, u8 *pbuff, -=09void (*_async_io_callback)(struct adapter *padater, struct io_req *pio_= req, u8 *cnxt), u8 *cnxt); - -extern void async_read_mem(struct adapter *adapter, u32 addr, u32 cnt, u8 = *pmem); -extern void async_read_port(struct adapter *adapter, u32 addr, u32 cnt, u8= *pmem); - -extern void async_write8(struct adapter *adapter, u32 addr, u8 val, -=09void (*_async_io_callback)(struct adapter *padater, struct io_req *pio_= req, u8 *cnxt), u8 *cnxt); -extern void async_write16(struct adapter *adapter, u32 addr, u16 val, -=09void (*_async_io_callback)(struct adapter *padater, struct io_req *pio_= req, u8 *cnxt), u8 *cnxt); -extern void async_write32(struct adapter *adapter, u32 addr, u32 val, -=09void (*_async_io_callback)(struct adapter *padater, struct io_req *pio_= req, u8 *cnxt), u8 *cnxt); - -extern void async_write_mem(struct adapter *adapter, u32 addr, u32 cnt, u8= *pmem); -extern void async_write_port(struct adapter *adapter, u32 addr, u32 cnt, u= 8 *pmem); - - int rtw_init_io_priv(struct adapter *padapter, void (*set_intf_ops)(struct= adapter *padapter, struct _io_ops *pops)); - -extern uint alloc_io_queue(struct adapter *adapter); -extern void free_io_queue(struct adapter *adapter); -extern void async_bus_io(struct io_queue *pio_q); -extern void bus_sync_io(struct io_queue *pio_q); -extern u32 _ioreq2rwmem(struct io_queue *pio_q); -extern void dev_power_down(struct adapter *Adapter, u8 bpwrup); - #endif=09/* _RTL8711_IO_H_ */ -- 2.30.2