diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2014-11-07 19:06:08 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-26 13:36:54 -0800 |
commit | bf8918de79b98f647bb2927b5935de09ed091b12 (patch) | |
tree | 3ae5faa1c59f3d2a1505316a4b9fe475aa71a1cf /drivers/staging/vt6655/device.h | |
parent | ff8d9f0806c8db8a3920752f4ca38f6688d0f87c (diff) |
staging: vt6655: change typedef enum _VIA_PKT_TYPE to macro
Replacing for u8 type and removing cast for byBBType.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655/device.h')
-rw-r--r-- | drivers/staging/vt6655/device.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h index 3742d8d6764a..55aa48b63b12 100644 --- a/drivers/staging/vt6655/device.h +++ b/drivers/staging/vt6655/device.h @@ -152,14 +152,11 @@ #define BB_TYPE_11B 1 #define BB_TYPE_11G 2 -/* 0:11a,1:11b,2:11gb(only CCK in BasicRate),3:11ga(OFDM in Basic Rate) */ -typedef enum _VIA_PKT_TYPE -{ - PK_TYPE_11A = 0, - PK_TYPE_11B, - PK_TYPE_11GB, - PK_TYPE_11GA -} VIA_PKT_TYPE, *PVIA_PKT_TYPE; +/* 0:11a, 1:11b, 2:11gb (only CCK in BasicRate), 3:11ga (OFDM in BasicRate) */ +#define PK_TYPE_11A 0 +#define PK_TYPE_11B 1 +#define PK_TYPE_11GB 2 +#define PK_TYPE_11GA 3 typedef struct __chip_info_tbl { CHIP_TYPE chip_id; @@ -319,11 +316,11 @@ struct vnt_private { unsigned char byCWMaxMin; u8 byBBType; /* 0:11A, 1:11B, 2:11G */ - VIA_PKT_TYPE byPacketType; /* - * 0:11a,1:11b,2:11gb (only CCK - * in BasicRate), 3:11ga (OFDM in - * Basic Rate) - */ + u8 byPacketType; /* + * 0:11a,1:11b,2:11gb (only CCK + * in BasicRate), 3:11ga (OFDM in + * Basic Rate) + */ unsigned short wBasicRate; unsigned char byACKRate; unsigned char byTopOFDMBasicRate; |