aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723bs/include/drv_types.h
diff options
context:
space:
mode:
authorMarco Cesati <marcocesati@gmail.com>2021-03-24 13:44:29 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-26 15:03:01 +0100
commit145d91b778d454b7aa4579a47c11cd2b83e9085c (patch)
tree6dc7121e85b1ef4b7c8a2ae0f3fc7bbb07cfbeed /drivers/staging/rtl8723bs/include/drv_types.h
parentStaging: rtl8723bs: remove named enums in rtw_recv.h (diff)
downloadlinux-dev-145d91b778d454b7aa4579a47c11cd2b83e9085c.tar.xz
linux-dev-145d91b778d454b7aa4579a47c11cd2b83e9085c.zip
Staging: rtl8723bs: remove named enums in drv_types.h
Remove the following unnecessary enum names or definitions in include/drv_types.h: enum _nic_version [definition] enum _iface_type [name] enum adapter_type [definition] enum driver_state [name] Signed-off-by: Marco Cesati <marcocesati@gmail.com> Link: https://lore.kernel.org/r/20210324124456.25221-7-marcocesati@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs/include/drv_types.h')
-rw-r--r--drivers/staging/rtl8723bs/include/drv_types.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/drivers/staging/rtl8723bs/include/drv_types.h b/drivers/staging/rtl8723bs/include/drv_types.h
index 1658450b386e..df1dd9fa7b90 100644
--- a/drivers/staging/rtl8723bs/include/drv_types.h
+++ b/drivers/staging/rtl8723bs/include/drv_types.h
@@ -24,15 +24,6 @@
#include <wifi.h>
#include <ieee80211.h>
-enum _nic_version {
-
- RTL8711_NIC,
- RTL8712_NIC,
- RTL8713_NIC,
- RTL8716_NIC
-
-};
-
#include <rtw_rf.h>
#include <rtw_ht.h>
@@ -347,19 +338,13 @@ static inline struct device *dvobj_to_dev(struct dvobj_priv *dvobj)
struct adapter *dvobj_get_port0_adapter(struct dvobj_priv *dvobj);
-enum _iface_type {
+enum {
IFACE_PORT0, /* mapping to port0 for C/D series chips */
IFACE_PORT1, /* mapping to port1 for C/D series chip */
MAX_IFACE_PORT,
};
-enum adapter_type {
- PRIMARY_ADAPTER,
- SECONDARY_ADAPTER,
- MAX_ADAPTER = 0xFF,
-};
-
-enum driver_state {
+enum {
DRIVER_NORMAL = 0,
DRIVER_DISAPPEAR = 1,
DRIVER_REPLACE_DONGLE = 2,