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

staging: r8712u: Remove defines that are not used

This driver has a number of defines, etc. that are not used.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Larry Finger and committed by
Greg Kroah-Hartman
73ee07fa 5ca136a0

-91
-9
drivers/staging/rtl8712/drv_types.h
··· 70 70 #include "rtl871x_event.h" 71 71 #include "rtl871x_led.h" 72 72 73 - #define SPEC_DEV_ID_NONE BIT(0) 74 73 #define SPEC_DEV_ID_DISABLE_HT BIT(1) 75 - #define SPEC_DEV_ID_ENABLE_PS BIT(2) 76 74 77 75 struct specific_device_id { 78 76 u32 flags; ··· 124 126 u8 low_power; 125 127 u8 wifi_test; 126 128 }; 127 - 128 - /* For registry parameters */ 129 - #define RGTRY_OFT(field) ((addr_t)FIELD_OFFSET(struct registry_priv, field)) 130 - #define RGTRY_SZ(field) sizeof(((struct registry_priv *)0)->field) 131 - #define BSSID_OFT(field) ((addr_t)FIELD_OFFSET(struct ndis_wlan_bssid_ex, \ 132 - field)) 133 - #define BSSID_SZ(field) sizeof(((struct ndis_wlan_bssid_ex *)0)->field) 134 129 135 130 struct dvobj_priv { 136 131 struct _adapter *padapter;
-20
drivers/staging/rtl8712/rtl871x_pwrctrl.h
··· 30 30 #include "drv_types.h" 31 31 32 32 33 - #define FW_PWR0 0 34 - #define FW_PWR1 1 35 - #define FW_PWR2 2 36 - #define FW_PWR3 3 37 - 38 - 39 - #define HW_PWR0 7 40 - #define HW_PWR1 6 41 - #define HW_PWR2 2 42 - #define HW_PWR3 0 43 - #define HW_PWR4 8 44 - 45 - #define FW_PWRMSK 0x7 46 - 47 - 48 - #define XMIT_ALIVE BIT(0) 49 - #define RECV_ALIVE BIT(1) 50 33 #define CMD_ALIVE BIT(2) 51 - #define EVT_ALIVE BIT(3) 52 - 53 34 54 35 enum Power_Mgnt { 55 36 PS_MODE_ACTIVE = 0 , ··· 46 65 PM_Card_Disable , 47 66 PS_MODE_NUM 48 67 }; 49 - 50 68 51 69 /* 52 70 BIT[2:0] = HW state
-1
drivers/staging/rtl8712/usb_intf.c
··· 37 37 #include "recv_osdep.h" 38 38 #include "xmit_osdep.h" 39 39 #include "rtl8712_efuse.h" 40 - #include "usb_vendor_req.h" 41 40 #include "usb_ops.h" 42 41 #include "usb_osintf.h" 43 42
-3
drivers/staging/rtl8712/usb_osintf.h
··· 28 28 29 29 #include "osdep_service.h" 30 30 #include "drv_types.h" 31 - #include "usb_vendor_req.h" 32 - 33 - #define USBD_HALTED(Status) ((u32)(Status) >> 30 == 3) 34 31 35 32 extern char *r8712_initmac; 36 33
-58
drivers/staging/rtl8712/usb_vendor_req.h
··· 1 - /****************************************************************************** 2 - * 3 - * Copyright(c) 2007 - 2010 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 - * You should have received a copy of the GNU General Public License along with 15 - * this program; if not, write to the Free Software Foundation, Inc., 16 - * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 - * 18 - * Modifications for inclusion into the Linux staging tree are 19 - * Copyright(c) 2010 Larry Finger. All rights reserved. 20 - * 21 - * Contact information: 22 - * WLAN FAE <wlanfae@realtek.com> 23 - * Larry Finger <Larry.Finger@lwfinger.net> 24 - * 25 - ******************************************************************************/ 26 - #ifndef _USB_VENDOR_REQUEST_H_ 27 - #define _USB_VENDOR_REQUEST_H_ 28 - 29 - /*4 Set/Get Register related wIndex/Data */ 30 - #define RT_USB_RESET_MASK_OFF 0 31 - #define RT_USB_RESET_MASK_ON 1 32 - #define RT_USB_SLEEP_MASK_OFF 0 33 - #define RT_USB_SLEEP_MASK_ON 1 34 - #define RT_USB_LDO_ON 1 35 - #define RT_USB_LDO_OFF 0 36 - 37 - /*4 Set/Get SYSCLK related wValue or Data */ 38 - #define RT_USB_SYSCLK_32KHZ 0 39 - #define RT_USB_SYSCLK_40MHZ 1 40 - #define RT_USB_SYSCLK_60MHZ 2 41 - 42 - enum RT_USB_BREQUEST { 43 - RT_USB_SET_REGISTER = 1, 44 - RT_USB_SET_SYSCLK = 2, 45 - RT_USB_GET_SYSCLK = 3, 46 - RT_USB_GET_REGISTER = 4 47 - }; 48 - 49 - enum RT_USB_WVALUE { 50 - RT_USB_RESET_MASK = 1, 51 - RT_USB_SLEEP_MASK = 2, 52 - RT_USB_USB_HRCPWM = 3, 53 - RT_USB_LDO = 4, 54 - RT_USB_BOOT_TYPE = 5 55 - }; 56 - 57 - #endif 58 -