Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8723au: Fold rtw_ack_tx_done23a() into rtw23a_sctx_done_err()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jes Sorensen and committed by
Greg Kroah-Hartman
116bf149 d3220b71

+18 -35
-1
drivers/staging/rtl8723au/Makefile
··· 32 32 hal/rtl8723a_rf6052.o \ 33 33 hal/rtl8723a_rxdesc.o \ 34 34 hal/rtl8723a_sreset.o \ 35 - hal/rtl8723a_xmit.o \ 36 35 hal/rtl8723au_recv.o \ 37 36 hal/rtl8723au_xmit.o \ 38 37 hal/usb_halinit.o \
+15
drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
··· 1048 1048 return ret; 1049 1049 } 1050 1050 1051 + void handle_txrpt_ccx_8723a(struct rtw_adapter *adapter, void *buf) 1052 + { 1053 + struct txrpt_ccx_8723a *txrpt_ccx = buf; 1054 + struct submit_ctx *pack_tx_ops = &adapter->xmitpriv.ack_tx_ops; 1055 + 1056 + if (txrpt_ccx->int_ccx && adapter->xmitpriv.ack_tx) { 1057 + if (txrpt_ccx->pkt_ok) 1058 + rtw23a_sctx_done_err(&pack_tx_ops, 1059 + RTW_SCTX_DONE_SUCCESS); 1060 + else 1061 + rtw23a_sctx_done_err(&pack_tx_ops, 1062 + RTW_SCTX_DONE_CCX_PKT_FAIL); 1063 + } 1064 + } 1065 + 1051 1066 void rtl8723a_InitAntenna_Selection(struct rtw_adapter *padapter) 1052 1067 { 1053 1068 u8 val;
-31
drivers/staging/rtl8723au/hal/rtl8723a_xmit.c
··· 1 - /****************************************************************************** 2 - * 3 - * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved. 4 - * 5 - * This program is free software; you can redistribute it and/or modify it 6 - * under the terms of version 2 of the GNU General Public License as 7 - * published by the Free Software Foundation. 8 - * 9 - * This program is distributed in the hope that it will be useful, but WITHOUT 10 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 - * more details. 13 - * 14 - ******************************************************************************/ 15 - #define _RTL8723A_XMIT_C_ 16 - 17 - #include <osdep_service.h> 18 - #include <drv_types.h> 19 - #include <rtl8723a_hal.h> 20 - 21 - void handle_txrpt_ccx_8723a(struct rtw_adapter *adapter, void *buf) 22 - { 23 - struct txrpt_ccx_8723a *txrpt_ccx = buf; 24 - 25 - if (txrpt_ccx->int_ccx) { 26 - if (txrpt_ccx->pkt_ok) 27 - rtw_ack_tx_done23a(&adapter->xmitpriv, RTW_SCTX_DONE_SUCCESS); 28 - else 29 - rtw_ack_tx_done23a(&adapter->xmitpriv, RTW_SCTX_DONE_CCX_PKT_FAIL); 30 - } 31 - }
-1
drivers/staging/rtl8723au/include/rtw_xmit.h
··· 379 379 u8 qos_acm23a(u8 acm_mask, u8 priority); 380 380 u32 rtw_get_ff_hwaddr23a(struct xmit_frame *pxmitframe); 381 381 int rtw_ack_tx_wait23a(struct xmit_priv *pxmitpriv, u32 timeout_ms); 382 - void rtw_ack_tx_done23a(struct xmit_priv *pxmitpriv, int status); 383 382 384 383 /* include after declaring struct xmit_buf, in order to avoid warning */ 385 384 #include <xmit_osdep.h>
+3 -2
drivers/staging/rtl8723au/os_dep/usb_intf.c
··· 242 242 243 243 static void rtw_dev_unload(struct rtw_adapter *padapter) 244 244 { 245 + struct submit_ctx *pack_tx_ops = &padapter->xmitpriv.ack_tx_ops; 245 246 RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("+rtw_dev_unload\n")); 246 247 247 248 if (padapter->bup) { ··· 250 249 251 250 padapter->bDriverStopped = true; 252 251 if (padapter->xmitpriv.ack_tx) 253 - rtw_ack_tx_done23a(&padapter->xmitpriv, 254 - RTW_SCTX_DONE_DRV_STOP); 252 + rtw23a_sctx_done_err(&pack_tx_ops, 253 + RTW_SCTX_DONE_DRV_STOP); 255 254 256 255 /* s3. */ 257 256 rtl8723a_usb_intf_stop(padapter);