Commit f9e39a96 authored by Martin Kaiser's avatar Martin Kaiser Committed by Greg Kroah-Hartman

staging: r8188eu: remove struct intf_hdl

There are no more users of struct intf_hdl in the r8188eu driver. We can
now remove this struct.
Signed-off-by: default avatarMartin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20230123205342.229589-4-martin@kaiser.cxSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent efa1c4e5
...@@ -152,7 +152,6 @@ struct adapter { ...@@ -152,7 +152,6 @@ struct adapter {
struct mlme_ext_priv mlmeextpriv; struct mlme_ext_priv mlmeextpriv;
struct cmd_priv cmdpriv; struct cmd_priv cmdpriv;
struct evt_priv evtpriv; struct evt_priv evtpriv;
struct intf_hdl intf;
struct xmit_priv xmitpriv; struct xmit_priv xmitpriv;
struct recv_priv recvpriv; struct recv_priv recvpriv;
struct sta_priv stapriv; struct sta_priv stapriv;
......
...@@ -17,12 +17,6 @@ ...@@ -17,12 +17,6 @@
#include <linux/usb/ch9.h> #include <linux/usb/ch9.h>
struct intf_priv; struct intf_priv;
struct intf_hdl;
struct intf_hdl {
struct adapter *padapter;
struct dvobj_priv *pintf_dev;
};
int __must_check rtw_read8(struct adapter *adapter, u32 addr, u8 *data); 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_read16(struct adapter *adapter, u32 addr, u16 *data);
......
...@@ -290,7 +290,6 @@ static int rtw_usb_if1_init(struct dvobj_priv *dvobj, struct usb_interface *pusb ...@@ -290,7 +290,6 @@ static int rtw_usb_if1_init(struct dvobj_priv *dvobj, struct usb_interface *pusb
{ {
struct adapter *padapter = NULL; struct adapter *padapter = NULL;
struct net_device *pnetdev = NULL; struct net_device *pnetdev = NULL;
struct intf_hdl *pintf;
int ret; int ret;
padapter = vzalloc(sizeof(*padapter)); padapter = vzalloc(sizeof(*padapter));
...@@ -317,11 +316,6 @@ static int rtw_usb_if1_init(struct dvobj_priv *dvobj, struct usb_interface *pusb ...@@ -317,11 +316,6 @@ static int rtw_usb_if1_init(struct dvobj_priv *dvobj, struct usb_interface *pusb
padapter->intf_start = &usb_intf_start; padapter->intf_start = &usb_intf_start;
padapter->intf_stop = &usb_intf_stop; padapter->intf_stop = &usb_intf_stop;
/* step init_io_priv */
pintf = &padapter->intf;
pintf->padapter = padapter;
pintf->pintf_dev = adapter_to_dvobj(padapter);
/* step read_chip_version */ /* step read_chip_version */
rtl8188e_read_chip_version(padapter); rtl8188e_read_chip_version(padapter);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment