rtlwifi: Remove unused _usb_nbytes_read_write and _usb_writeN_sync
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 27 Sep 2011 05:48:21 +0000 (00:48 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Sep 2011 19:57:02 +0000 (15:57 -0400)
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/usb.c
drivers/net/wireless/rtlwifi/wifi.h

index 2e544a0..b42c2e2 100644 (file)
@@ -191,35 +191,6 @@ static void _usb_write32_async(struct rtl_priv *rtlpriv, u32 addr, u32 val)
        _usb_write_async(to_usb_device(dev), addr, val, 4);
 }
 
-static int _usb_nbytes_read_write(struct usb_device *udev, bool read, u32 addr,
-                                 u16 len, u8 *pdata)
-{
-       int status;
-       u8 request;
-       u16 wvalue;
-       u16 index;
-
-       request = REALTEK_USB_VENQT_CMD_REQ;
-       index = REALTEK_USB_VENQT_CMD_IDX; /* n/a */
-       wvalue = (u16)addr;
-       if (read)
-               status = _usbctrl_vendorreq_sync_read(udev, request, wvalue,
-                                                     index, pdata, len);
-       else
-               status = _usbctrl_vendorreq_async_write(udev, request, wvalue,
-                                                       index, pdata, len);
-       return status;
-}
-
-static int _usb_writeN_async(struct rtl_priv *rtlpriv, u32 addr, u16 len,
-                            u8 *pdata)
-{
-       struct device *dev = rtlpriv->io.dev;
-
-       return _usb_nbytes_read_write(to_usb_device(dev), false, addr, len,
-                                     pdata);
-}
-
 static void _rtl_usb_io_handler_init(struct device *dev,
                                     struct ieee80211_hw *hw)
 {
@@ -230,7 +201,6 @@ static void _rtl_usb_io_handler_init(struct device *dev,
        rtlpriv->io.write8_async        = _usb_write8_async;
        rtlpriv->io.write16_async       = _usb_write16_async;
        rtlpriv->io.write32_async       = _usb_write32_async;
-       rtlpriv->io.writeN_async        = _usb_writeN_async;
        rtlpriv->io.read8_sync          = _usb_read8_sync;
        rtlpriv->io.read16_sync         = _usb_read16_sync;
        rtlpriv->io.read32_sync         = _usb_read32_sync;
index 31b3be9..3126485 100644 (file)
@@ -942,10 +942,8 @@ struct rtl_io {
        unsigned long pci_base_addr;    /*device I/O address */
 
        void (*write8_async) (struct rtl_priv *rtlpriv, u32 addr, u8 val);
-       void (*write16_async) (struct rtl_priv *rtlpriv, u32 addr, u16 val);
-       void (*write32_async) (struct rtl_priv *rtlpriv, u32 addr, u32 val);
-       int (*writeN_async) (struct rtl_priv *rtlpriv, u32 addr, u16 len,
-                            u8 *pdata);
+       void (*write16_async) (struct rtl_priv *rtlpriv, u32 addr, __le16 val);
+       void (*write32_async) (struct rtl_priv *rtlpriv, u32 addr, __le32 val);
 
        u8(*read8_sync) (struct rtl_priv *rtlpriv, u32 addr);
        u16(*read16_sync) (struct rtl_priv *rtlpriv, u32 addr);