staging: rtl8723au: Name port vs register access functions consistently
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 16 May 2014 08:05:10 +0000 (10:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 May 2014 18:34:36 +0000 (11:34 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/rtl8723au_xmit.c
drivers/staging/rtl8723au/hal/usb_halinit.c
drivers/staging/rtl8723au/hal/usb_ops_linux.c
drivers/staging/rtl8723au/include/usb_ops_linux.h
drivers/staging/rtl8723au/os_dep/usb_intf.c
drivers/staging/rtl8723au/os_dep/usb_ops_linux.c

index 45bd67e88e0e12628abd0378961e15e6997a5ebc..d2caafa6b026d09b79a8fd136512eda2d0b22b7f 100644 (file)
@@ -345,8 +345,8 @@ static int rtw_dump_xframe(struct rtw_adapter *padapter,
                }
 
                ff_hwaddr = rtw_get_ff_hwaddr23a(pxmitframe);
-               inner_ret = rtl8723a_usb_write_port(padapter, ff_hwaddr,
-                                                   w_sz, pxmitbuf);
+               inner_ret = rtl8723au_write_port(padapter, ff_hwaddr,
+                                                w_sz, pxmitbuf);
                rtw_count_tx_stats23a(padapter, pxmitframe, sz);
 
                RT_TRACE(_module_rtl871x_xmit_c_, _drv_info_,
index 95906d46d748b9d19d59d46e86bf6f696b29649b..e0d2d6e205c3ee41533df8f5ad73fae8cdd23aac 100644 (file)
@@ -1235,8 +1235,8 @@ int rtl8723au_inirp_init(struct rtw_adapter *Adapter)
        /* issue Rx irp to receive data */
        precvbuf = (struct recv_buf *)precvpriv->precv_buf;
        for (i = 0; i < NR_RECVBUFF; i++) {
-               if (rtl8723a_usb_read_port(Adapter, RECV_BULK_IN_ADDR, 0,
-                                          precvbuf) == _FAIL) {
+               if (rtl8723au_read_port(Adapter, RECV_BULK_IN_ADDR, 0,
+                                       precvbuf) == _FAIL) {
                        RT_TRACE(_module_hci_hal_init_c_, _drv_err_,
                                 ("usb_rx_init: usb_read_port error\n"));
                        status = _FAIL;
@@ -1244,7 +1244,7 @@ int rtl8723au_inirp_init(struct rtw_adapter *Adapter)
                }
                precvbuf++;
        }
-       if (rtl8723a_usb_read_interrupt(Adapter, RECV_INT_IN_ADDR) == _FAIL) {
+       if (rtl8723au_read_interrupt(Adapter, RECV_INT_IN_ADDR) == _FAIL) {
                RT_TRACE(_module_hci_hal_init_c_, _drv_err_,
                         ("usb_rx_init: usb_read_interrupt error\n"));
                status = _FAIL;
@@ -1265,7 +1265,7 @@ int rtl8723au_inirp_deinit(struct rtw_adapter *Adapter)
 
        RT_TRACE(_module_hci_hal_init_c_, _drv_info_,
                 ("\n ===> usb_rx_deinit\n"));
-       rtl8723a_usb_read_port_cancel(Adapter);
+       rtl8723au_read_port_cancel(Adapter);
        pHalData->IntrMask[0] = rtl8723au_read32(Adapter, REG_USB_HIMR);
        MSG_8723A("%s pHalData->IntrMask = 0x%04x\n", __func__,
                  pHalData->IntrMask[0]);
index 52792e027a4f92245fc2e9535d81b21d0d71270e..73b49aca95e1ab3dd9613b76ac444da5eab04d07 100644 (file)
@@ -447,7 +447,7 @@ urb_submit:
        }
 }
 
-int rtl8723a_usb_read_interrupt(struct rtw_adapter *adapter, u32 addr)
+int rtl8723au_read_interrupt(struct rtw_adapter *adapter, u32 addr)
 {
        int err;
        unsigned int pipe;
@@ -676,8 +676,8 @@ static void usb_read_port_complete(struct urb *purb)
                                 ("usb_read_port_complete: (purb->actual_"
                                  "length > MAX_RECVBUF_SZ) || (purb->actual_"
                                  "length < RXDESC_SIZE)\n"));
-                       rtl8723a_usb_read_port(padapter, RECV_BULK_IN_ADDR, 0,
-                                              precvbuf);
+                       rtl8723au_read_port(padapter, RECV_BULK_IN_ADDR, 0,
+                                           precvbuf);
                        DBG_8723A("%s()-%d: RX Warning!\n",
                                  __FUNCTION__, __LINE__);
                } else {
@@ -692,8 +692,8 @@ static void usb_read_port_complete(struct urb *purb)
                                tasklet_schedule(&precvpriv->recv_tasklet);
 
                        precvbuf->pskb = NULL;
-                       rtl8723a_usb_read_port(padapter, RECV_BULK_IN_ADDR, 0,
-                                              precvbuf);
+                       rtl8723au_read_port(padapter, RECV_BULK_IN_ADDR, 0,
+                                           precvbuf);
                }
        } else {
                RT_TRACE(_module_hci_ops_os_c_, _drv_err_,
@@ -730,8 +730,8 @@ static void usb_read_port_complete(struct urb *purb)
                        pHalData = GET_HAL_DATA(padapter);
                        pHalData->srestpriv.Wifi_Error_Status =
                                USB_READ_PORT_FAIL;
-                       rtl8723a_usb_read_port(padapter, RECV_BULK_IN_ADDR, 0,
-                                              precvbuf);
+                       rtl8723au_read_port(padapter, RECV_BULK_IN_ADDR, 0,
+                                           precvbuf);
                        break;
                case -EINPROGRESS:
                        DBG_8723A("ERROR: URB IS IN PROGRESS!/n");
@@ -742,8 +742,8 @@ static void usb_read_port_complete(struct urb *purb)
        }
 }
 
-int rtl8723a_usb_read_port(struct rtw_adapter *adapter, u32 addr, u32 cnt,
-                          struct recv_buf *precvbuf)
+int rtl8723au_read_port(struct rtw_adapter *adapter, u32 addr, u32 cnt,
+                       struct recv_buf *precvbuf)
 {
        int err;
        unsigned int pipe;
index 4b5b10ca1e4715b1723a0e18ff6d347f3396f338..e540a4bad0877fb9b25c7c4f9c6c5b0dccb7313d 100644 (file)
 
 #define MAX_USBCTRL_VENDORREQ_TIMES    10
 
-int rtl8723a_usb_read_port(struct rtw_adapter *adapter, u32 addr, u32 cnt,
-                          struct recv_buf *precvbuf);
-void rtl8723a_usb_read_port_cancel(struct rtw_adapter *padapter);
-int rtl8723a_usb_write_port(struct rtw_adapter *padapter, u32 addr, u32 cnt,
-                           struct xmit_buf *pxmitbuf);
-void rtl8723a_usb_write_port_cancel(struct rtw_adapter *padapter);
-int rtl8723a_usb_read_interrupt(struct rtw_adapter *adapter, u32 addr);
+int rtl8723au_read_port(struct rtw_adapter *adapter, u32 addr, u32 cnt,
+                       struct recv_buf *precvbuf);
+void rtl8723au_read_port_cancel(struct rtw_adapter *padapter);
+int rtl8723au_write_port(struct rtw_adapter *padapter, u32 addr, u32 cnt,
+                        struct xmit_buf *pxmitbuf);
+void rtl8723au_write_port_cancel(struct rtw_adapter *padapter);
+int rtl8723au_read_interrupt(struct rtw_adapter *adapter, u32 addr);
 
 u8 rtl8723au_read8(struct rtw_adapter *padapter, u32 addr);
 u16 rtl8723au_read16(struct rtw_adapter *padapter, u32 addr);
index cc5188bf49fb7aaaa74f34b62606ab0fc41b4bee..d00ccdcaacc58c7379f57711a6419c973a6d3816 100644 (file)
@@ -292,7 +292,7 @@ void rtl8723a_usb_intf_stop(struct rtw_adapter *padapter)
        rtl8723au_inirp_deinit(padapter);
 
        /* cancel out irp */
-       rtl8723a_usb_write_port_cancel(padapter);
+       rtl8723au_write_port_cancel(padapter);
 
        /* todo:cancel other irps */
        RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("-usb_intf_stop\n"));
index a41d824ab32508292633ec732fa0c524b3d61229..d081449318c2e0d904d865d07260a3b7d8a167ae 100644 (file)
@@ -25,7 +25,7 @@ struct zero_bulkout_context {
        void *padapter;
 };
 
-void rtl8723a_usb_read_port_cancel(struct rtw_adapter *padapter)
+void rtl8723au_read_port_cancel(struct rtw_adapter *padapter)
 {
        struct recv_buf *precvbuf;
        int i;
@@ -140,8 +140,8 @@ check_completion:
        tasklet_hi_schedule(&pxmitpriv->xmit_tasklet);
 }
 
-int rtl8723a_usb_write_port(struct rtw_adapter *padapter, u32 addr, u32 cnt,
-                           struct xmit_buf *pxmitbuf)
+int rtl8723au_write_port(struct rtw_adapter *padapter, u32 addr, u32 cnt,
+                        struct xmit_buf *pxmitbuf)
 {
        struct urb *purb = NULL;
        struct dvobj_priv *pdvobj = adapter_to_dvobj(padapter);
@@ -237,7 +237,7 @@ exit:
        return ret;
 }
 
-void rtl8723a_usb_write_port_cancel(struct rtw_adapter *padapter)
+void rtl8723au_write_port_cancel(struct rtw_adapter *padapter)
 {
        struct xmit_buf *pxmitbuf;
        struct list_head *plist;